write vbscript on veb applications in qtp with exapmles?



write vbscript on veb applications in qtp with exapmles?..

Answer / nanda

Do u want simple script....

For Login ....

browser("XXXX").page("XXXX").webedit("hgshad").set "hdsfajf"
browser("XXXX").page("XXXX").webedit("dsadsagd").set "dlskajdl"
browser("XXXX").page("XXXX").webImage("dasada").click

to count No. Of Links in WebPage..

set objlink = description.create
objlink('html tag").value = "A"

set n = browser("XXXX").page("XXXX").childobjects(objlink)

c = n.count

msgbox c

like this we write script for testing web applications..
these are the sample scripts only...

If any queries..
nanda.dreddy@gmail.com

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

how to test background color and dynamic images during runtime

4 Answers   Accenture, Oracle,


what is Synchronization point in QTP?Can anybody give a perfect example on it Thanks in advance

5 Answers  


What are all the common questions asked for the candidates having more than 1 yrs exp in QTP?

1 Answers  


In website, protocol has been changed http:to https what you will do? tell me your approach?

1 Answers  


Why qtp the best testing tool?

1 Answers  


can any one explain with an example how to test Web application using qtp

3 Answers  


i have data in excel sheet.i imported the data in data table.while doing parameterization,how the code knows it is a valid or invalid data?

2 Answers   Fiserv,


what are recovery management techiniques?

2 Answers   BirlaSoft, GL Noble Denton,


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

1 Answers  


If you are using descriptive programming and you have two objects with the same name, so you are identiying them by name and index, how can you avoid errors if a third object with the same name is added at the begining of the page?

4 Answers  


anybody give me the real time example for descriptive programming of web application

7 Answers  


what skills needed to be good test automation?

3 Answers  


Categories