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
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 |
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 |
Can any one give me some basic VB script used in QTP ?As i am new in QTP.Give sample VB script used in QTP? PLZ
why do we use both location and index identifier.
hi guys, could you please prepare script for given format ? 1,1,2,3,5,8,13,21,...etc use vbscript for this...?
What will be the test script in QTP to test a ComboBox where a user has to select more than two items????
In my QTP script I have a word in notepad that ends in a question mark, for example... "father?" As part of my script I want to delete the question mark. How do you delete a character in notepad?
When to Insert transactions in QTP?
is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?
Which property do you use to retrieve or assign data into a cell in a Data Table object?
How u perform exception handling in QTp,what is other name for ths?
Shall we add Local Repository to shared object repository,if yes,how we add
wt is frame work wt r d different types of frame works used in ur company
What is the use of virtual objects?