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

What is the difference between local and shared object repository in qtp?

0 Answers  


how u conduct GUI testing and PERFORMANCE testing on MS- WORD? and What r the GUI Test Cases and performance Test Cases?

3 Answers   Accenture, Civil Service, ICICI, Jintek, Satyam, Singularity, Syntel, TCS, Wipro,


Is any limitation to xml checkpoints?

0 Answers  


What is source control?

1 Answers  


can u tell me website address of VBscript with examples.

2 Answers  






How will you check a web application for broken links using qtp?

0 Answers  


Please give me the steps to carry out datadriven in QTP8.2

2 Answers  


one ok button and one text box is there.when i click on ok button in that text box one no. will display from 1 to 100 randomley.if that is not 100 when we click on ok button again ,again another text box ll created with another no. we will continue this till the text box created and displays 100.and when its 100 ok button should disabled. remember thet no will display not seriely ,it displays randomley,and each time new text box will created.

6 Answers   ADP,


How will you enchance the script?

1 Answers  


suppose u have two send buttons(same width,height,font) on an application write a descriptive programming

1 Answers  


Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...

0 Answers   Bank Of America,


Can I record on netscape browser does it require any special settings ?

2 Answers  


Categories