SDET- QA Automation Techie

Full Stack QA Automation Testing Blog

  • Home
  • Training
    • Online
    • Self-Paced
  • Video Tutorials
  • Interview Skills
    • HR Interview Questions Videos
    • Domain Knowledge
  • Career Guidance
  • Home
  • Software Testing
    • Manual Testing Tutorials
    • Manual Testing Project
    • Manaul Testing FAQS
    • ISTQB
    • AGILE
  • Web Automation Testing
    • Java Programmng
    • Python Programmng
    • Selenium with Java
    • Selenium with Python
    • Robot Framework(Selenium with Python)
    • selenium with Cucumber
    • TestNG+IntelliJ
    • Mobile App Testing(Appium)
    • JMeter
  • API Automation Testing
    • Rest Assured API Testing (BDD)
    • Rest Assured API Testing (Java+ TestNG)
    • Robot Framework(Rest API Testing with Python)
    • Postman
    • SoapUI
    • API Testing(FAQ's)
  • SDET|DevOps
    • Continuos Integration
    • SDET Essentials
    • AWS For Testers
    • Docker
  • SQL
    • Oracle(SQL)
    • MySQL for Testers
    • NoSQL
  • Unix/Linux
    • UNIX TUTORIALS
    • Linux Shell Scripting
  • ETL Testing
    • ETL Data warehouse Tutorial
    • ETL Concepts Tools and Templates
    • ETL Testing FAQ's
    • ETL Testing Videos
  • Big Data Hadoop
  • Video Tutorials
  • ApachePOI Video Tutorials
  • Downloads
    • E-Books for Professionals
    • Resumes
  • Automation Essencials
    • Cloud Technologies
      • Docker For Testers
      • AWS For Testers
      • Sub Child Category 3
    • Java Collections
    • Selenium Locators
    • Frequently Asked Java Programs
    • Frequently Asked Python Programs
    • Protractor
    • Cypress Web Automation

Descriptive Programming in UFT

 Automation Frameworks, QTP, UFT   

What is Descriptive Programming?

Enter or Provide Objects information (Properties and values of the object) directly into statements is called descriptive programming.
Advantages of Descriptive Programming:
-> Tests based on Descriptive Programming are faster in execution than Object Repository based Tests.

-> We can start Test design process even though Application is not ready.

-> Using Descriptive programming we can handle multiple instants of Application.

-> Using Descriptive programming we can handle duplicate objects.

-> Descriptive Programming is portable (we can run on different machines easily)



-> Maintenance is easy (Less amount of Resources)
Test Execution Process:
Object Repository based Test  Versus Descriptive Programming
Object Repository based Test:

During Test Execution, UFT reads statements one by one and gets objects information from Object Repository, based on that information performs operations on AUT.
Descriptive Programming:

During Test Execution, UFT reads statements one by one, Objects information also available in the statements, based on that information performs operations directly on AUT.

Note: Test object statements vary from Descriptive Programming to Object Repository based Test, remaining all statements are same.
Object Repository based Test Versus Descriptive Programming in case of Test Object Statements:
a) Single Test Object statement

OR based:

Syntax:

TestObject("Name of the Object").Method or Operation

Example:

Dialog("Login").Activate
Browser("Google").Close

DP:

Syntax:

TestObject("PropertyName:=PropertyValue").Method or Operation

Or

TestObject("Property1Name:=Property1Value", "Property2Name:=Property2Value").Method or Operation

Example:

Dialog("text:=Login").Activate
Or
Dialog("text:=Login", "width:=320","height:=204").Activate

Browser("CreationTime:=0").close

----------------------------------
Dynamic Programming- Create description objects and generate statements using description objects.
----------------------------------------------

Three steps in Dynamic Programming:
-------------------------------

i) Create Description objects


Syntax:

Set Variable = Description.Create

Example:

Set Login = Description.Create

---------------------------------------
ii) Enter one or more properties

Syntax:

Description Object("Property1 name").Value = Property1 value

Description Object("Property2 name").Value = Property2 value

Example:

Login("text").Value = "Login"
Login("width").Value = 320
Login("enabled").Value = True
-----------------------------------------------
iii) Generate statements using Description Objects

Synatx:

TestObject(descriptionObject).Method / Operation

Ex:

Dialog(Login).Activate
-------------------------------------------------------
Example:
'Create Description Objects
Set Login = Description.Create
Set Agent = Description.Create
Set Pwd = Description.Create
Set Ok = Description.Create
'Enter Properties Information

Login("text").Value ="Login"
Login("width").Value = 320
Login("height").Value = 204
Login("enabled").Value = True

Agent("attached text").value ="Agent Name:"
Agent("window id").value = 3001
Agent("x").value = 20

Pwd("attached text").value ="Password:"
Pwd("window id").value = 2000
Pwd("y").value = 123

Ok("text").Value="OK"
Ok("width").Value= 60

'Generate Statements using Description Objects
SystemUtil.Run "C:\Program Files\HP\Unified Functional Testing\samples\flight\app\flight4a.exe"
Dialog(Login).Activate
Dialog(Login).WinEdit(Agent).Set "abcd"
Dialog(Login).WinEdit(Pwd).SetSecure "53868ff62bf9c6a003e6a222cde99074e0bd01d7"
Dialog(Login).WinButton(OK).Click
------------------------------------------------------
'Generate Statements using Description Objects
ExecuteFile "Objects.vbs"
SystemUtil.Run "C:\Program Files\HP\Unified Functional Testing\samples\flight\app\flight4a.exe"
Dialog(Login).Activate
Dialog(Login).WinEdit(Agent).Set "abcd"
Dialog(Login).WinEdit(Pwd).SetSecure "53868ff62bf9c6a003e6a222cde99074e0bd01d7"
Dialog(Login).WinButton(OK).Click 
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to TwitterShare to Facebook
Newer Post Older Post Home
popup

Popular Posts

  • How To Explain Project In Interview Freshers and Experienced
    “ Describe an important project you’ve worked on ” is one of the most common questions you can expect in an interview. The purpose of a...
  • API/Webservices Testing using RestAssured (Part 1)
    Rest Assured : Is an API designed for automating REST services/Rest API's Pre-Requisites Java Free videos: https://www.you...
  • MANUAL TESTING REAL TIME INTERVIEW QUESTIONS & ANSWERS
    1. How will you receive the project requirements? A. The finalized SRS will be placed in a project repository; we will access it fr...

Facebook Page

Pages

  • Home
  • Resumes
  • Job Websites India/UK/US
  • ISTQB
  • Selenium with Java
  • E-Books for Professionals
  • Manual Testing Tutorials
  • Agile Methodology
  • Manual Testing Projects

Live Traffic

YouTube


Blog Visitors

Copyright © SDET- QA Automation Techie | Powered by Blogger
Design by SDET | Blogger Theme by | Distributed By Gooyaabi Templates