Apart from VB script What are the fundamental criteria to
gain the knowledge to write QTP script without OR and
recording ?

Answers were Sorted based on User's Feedback



Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script wi..

Answer / suresh.testing

In order to develop this script we should know the test
object descriptive properties & values (By using objectspy)

Ex:Static Descriptive program for login page(Banking
application)


Browser("name:=usRanfordbank").Page("title:=Ranfordbank").WebEdit("html
id:=txtuid").Set "Admin"

Browser("name:=usRanfordbank").Page("title:=Ranfordbank").WebEdit("html
id:=txtpwd").Set "suresh"

Browser("name:=usRanfordbank").Page("title:=Ranfordbank").Image("html
id:=login").Click

------------------------------------------------------------Ex:
Dynamic Descriptive program for login page (banking application

set br=description.create
br("name").value="usRanfordbank"

set pg=description.create
pg("title").value="usRanfordbank"

set uid=description.create
uid("html id").value="txtuid"

set pwd=description.create
pwd("html id").value="txtpwd"

set img=description.create
img("html id").value="login"

Browser(br).Page(pg).WebEdit(uid).Set "Admin"

Browser(br).Page(pg).WebEdit(pwd).Set "suresh"

Browser(br).Page(pg).Image(img).Click

Is This Answer Correct ?    8 Yes 6 No

Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script wi..

Answer / sai

I think just writing
br.pg.uid.set "Admin"
would be enough
no need of Browser(br).Page(pg).WebEdit(uid).Set "Admin"

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More QTP Interview Questions

please post the interview questions for QA position in FACTSET

0 Answers   FactSet Systems,


I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new link is created in the home page. This link is dynamic as it changes every 3 seconds. Obviously the new link is not in my Object Repo and I am trying to find a way how can I do a check or get the propery of the link I created. I can do it on keyword, but I need to do a check on expert mode, vbscript. I always get an error that is not identified whenever i try to check it (browser(b),page(p).link(newlink). Any idea?

4 Answers  


What is difference in global and action sheet in qtp?

0 Answers  


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<--

4 Answers  


What’s the QTP testing process?

1 Answers  






wht is the difference betn check point and output value?

5 Answers   BirlaSoft,


What is Object Spy?

7 Answers   JKH, Ordain Solutions,


How you will rate urself in QTP in the range of 0 to 5

0 Answers   Genpact,


How software tester can use constants and variables in scripts?

0 Answers  


Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?

0 Answers  


can anyone please send me qtp framework material please its urgent

1 Answers  


What is the expert view?

0 Answers  


Categories