how to write script in qtp(vbscript)..i mean with out
application deployed..and how to call script1 into script2?

Answers were Sorted based on User's Feedback



how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script..

Answer / shafi

hi
Using Descriptive Programming automation scripts can be
created in QTP even if the application has not been
developed.
Whenever QTP records any action on any object of an
application, it adds some description on how to recognize
that object to a repository of objects called object
repository. QTP cannot take action on an object until
unless its object description is in the Object Repository.
But descriptive programming provides a way to perform
action on objects which are not in Object repository
There are two ways in which descriptive programming can be
used
1. By creating properties collection object for the
description.
2. By giving the description in form of the string
arguments.

Is This Answer Correct ?    45 Yes 4 No

how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script..

Answer / hemant basaiwala

I dint got your question completely but if we want to call
different script i beleive the action in script1 can be
declared as reusable and we can call this action in next script
Thanks

Is This Answer Correct ?    40 Yes 18 No

how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script..

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

how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script..

Answer / suresh varma

you visit
www.gcreddy.com
in that site you can find more QTP Scripting information
there, flat file scripts, excel scripts, database scripts
and web scripts available

Is This Answer Correct ?    9 Yes 4 No

how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script..

Answer / bilal

i want to write a script for a page that has 2 input fields
and a save button. when i click on the save button it
should display error message if the input fields are empty.

Is This Answer Correct ?    10 Yes 13 No

how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script..

Answer / pavan kumar

You can call the script1 into script2 through "Call the
existing action" or "call copy of action" or else you can
Export the local action(script1)by selecting action call
properties in Key Board view.....this is done if both the
scripts belong to same application

In case if script1 is different applicant from script2 then
we have to save share resources.. this is done from share
object manager provided in Resource Menu

Is This Answer Correct ?    2 Yes 5 No

how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script..

Answer / chandra

use "for loop" concept for popping up error msg

Is This Answer Correct ?    7 Yes 14 No

how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script..

Answer / venkatraj.b

runaction actionname(iteration mode,iteration
range,parameters)

Is This Answer Correct ?    6 Yes 17 No

Post New Answer

More QTP Interview Questions

How do you open adobe acrobat file in QTP and do some testing on that file ?

0 Answers  


How to do excception handling ( error handling ) in QTP

6 Answers   Institute for Medical Education,


How to associate function library at a run time?

0 Answers  


what type of framework u r using in ur organization

0 Answers   Wipro,


can i change the runtime properties of an object ? How can i check if a parameter exists in database ?

0 Answers  






Hi All, I want to know how can we schedule QTP scripts. Am using 9.5 version and in our office they want to schedule individual scripts of QTP so that it can run unattended during night time, Please help me how to do that. 2. what is the use of silent test run in qtp can I schedule the scripts in Silent runner, Please explain. 3.I retrieved data from the database using output value -> Database output value. the result of the query for eg is 5 rows, iam able to output the first row by selecting the cols and adding it to output, but am not able to do it for the rest of the rows. please tell me how to do it. Sorry for posting so many qns, am not able to find answ to any of the above in any websites, hoping that someone would really help me with these here, please help me. awaiting for ur immediate revert. Priya

5 Answers  


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

0 Answers  


QTP WAS WORKING FINE BUT TODAY I GOT THE ERROR , THE MEMORY COULD NOT BE READ -REFERENCE MEMORY ,pPLEASE REPLY URGENT WHAT IS THE SOLUTON

1 Answers  


Hi I have created a table in the MS access database. I want to access the table in this database through QTP. The code is given below. The code is not working.The following error is displayed "Data source name not found and no default driver specified". Any one can correct the code. Thanks in advance. Dim dbconnection, rs Dim ca, sname Set dbconnection = createobject("ADODB.Connection") Set rs = createobject("ADODB.Recordset") dbconnection.open "DSN = MS Access Database","", "" rs.open "select * from Research", dbconnection rs.movefirst If rs.EOF <> True AND rs.BOF<> True then ca = rs("order_number") sname = rs("customer_number") rs.movenext msgbox ca msgbox sname End If

1 Answers  


How to Compare the 2 xl-sheets in QTP? ple write the vb Script for the comparison?

1 Answers  


www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

0 Answers   TCS,


can anyone please tell me what are all the shortcut keys used for qtp9.2? Thanks in advance..i expect ur valuable reply that help us our team???

0 Answers  


Categories