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


Please Help Members By Posting Answers For Below Questions

Why we load add-ins in qtp?

821


Is text area check point supports for web applications?

702


What are the challenges you faced during you entire life automation ?

1186


hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me

2091


How does qtp identify objects in the application?

802






If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

773


Suggest and Define a solution for an application whose objects are not recognized by UFT?

854


Explain how you can find the absolute value of the number in qtp?

825


What is the use of an object spy tool in qtp?

746


How does qtp identify gui object?

755


how to test Web application using QTP software

1506


In Remote acess server how u run a test?

1445


Explain different checkpoints in qtp.

932


What does mean by Scope of Automation?n How we defined it?

1752


after click on compose mail how can we attached a file in qtp with vbscript code

1847