what is the use of descripting programming?
Answers were Sorted based on User's Feedback
Answer / satyanarayana
We can go for descriptive programming in the following
situations
1).When application under test (AUT) is not ready.But if we
the objects and their properties then we can prepare the script
2).If same type of objects present in multiple pages then it
is difficult to maintain object repository then also we can
go for descriptive programming
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / kk
we can improve performance if we use DP instead of using OR
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kiran
1) Avoiding OR
2).When application under test (AUT) is not ready.But if we
the objects and their properties then we can prepare the script
3).If same type of objects present in multiple pages then it
is difficult to maintain object repository then also we can
go for descriptive programming
4)we can improve performance if we use DP instead of using OR
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / siva
We no need to depend on OR.
we will write the property and values in the script
statements it self. so that qtp will identify based on that
properties. no need to depend on OR
ex: window("flightreservation")winedit("userid").set "siva"
with the above example it will go to identify the userid
edit box using OR
and where as in Discriptive programming.
window("attachedtext:flightreservation")winedit
("attachedtext:userid",.......(no of values to
identify).set"siva"
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / haribabu
hai siva
window("attachedtext:=flightreservation")winedit
("attachedtext:=userid",.......(no of values to
identify).set"siva"
this is correct script
if you want any dout
make a call i will explain
9916398678
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shamsher singh
There is 2 methods 1 using Object repository . 2 using
Descriptive programming.
In descriptive programming we can create own COM object and
use them in application.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ram.polavarapu
-descriptive programming is used to find more similar objects.
-there is no object repository for descriptive scripting so
size of the script is less executing is fast.
ex->
print the all links in Google page
dim link
set link=description.create
link("micclass").value="Link"
set a=browser("").page("").childobjects(link)
for i=0 to a.count-1
s=a(i).getroproperty("text")
print s
next
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / krishna
You dont have to use the Object repository.
u can write scripts using the Scenarios,u dont have to wait
for the application to come.
| Is This Answer Correct ? | 0 Yes | 1 No |
How to perform action on objects, If two objects have the almost the same name ? example : Object 1 : "Entry of Items" Object 2 : "Items" Whenever I ask QTP to perform an action on Object 2 it performs action on Object 1. Note: The two objects are present in an Oracle Application tree.
Hi All, I am 4 yrs experieced in manual testing and new to automation tool QTP. Iam trying to learn it thru online and material i have.I am able to understand but unable to trace out which method or function to be used where necessary in VB Script. How come we know the functions or methods to be used to open a window when clicking on button or so...Pls suggest me.How can i proceed further to apt VB Script.
Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
How do i relate the checkbox properties with webelement when checkbox properties are changing on every login to the application
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
Hi..friends can anybody write the script for this question... Am having some 20 nos of links in a web application, i want to click some 5,13 & 17th links. So please....can anybody give the answer....??? -->Hani<--
When testing a web application, the url for each page changes, so using QTP how do u handle this scenario. If anyone knows please answer in detail about the whole procedure. Thanks a lot.
How you create new action in qtp?
why we are using environment variables instead of global variables?
Can we select add ins in UFT during run time
How to handle exception when data table is not available in local host system or path is not correct(explain statement with example)