how to write script in qtp(vbscript)..i mean with out
application deployed..and how to call script1 into script2?
Answer Posted / bfakruddin
Hello Bilal,
first try to get the value available in fields... by using
getroproperty
eg:
inp1=object.getroproperty("text")
inp2=object.getroproperty("text")
res1=len(inp1)
res2=len(inp2)
if (res1=0)&(res2=0) Then
msgbox "Fields are Empty"
End if
try to use above code and update as per your requirement
and execute... It will work
else let me know... What the error you are getting
Thanks & regards
Baba Fakruddin.D
| Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
With what extension you can save the list of tests in a file to run in test batch runner?
How do you configure QTP AND Test director?
What is smart identification in QTP?
distinguish between old version and new version QTP features.
suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
What is the difference between byref and byval in qtp?
Can any suggest me what is exposure testing?
What is Distributed testing? How does UFT support it?
What is the difference between QTP and WinRunner? Why do you choose only QTP for automation among remaing tools like Rational robot and silk test? Write the VBscript for any functionality in your project ? What is the cost of QTP ? If you entered into yahoo mail with your valid user name then you will get FOR EXAMPLE , " welcome to krishna " on the top of inbo page , how can you test it in QTP? What type of testing you can do, when we gave you 5 screens and how can you test that application? What type of framework you are using in your company and explain it?
Explain how you can find length of array in qtp?
How does you pass optional arguments in qtp?
Explain how you can replace string in qtp?
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?
What are the two types of repositories available, explain them?