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

what is Action conversion tool? what the Action conversion tool will do?

1 Answers   Satyam,


how to test power point using QTP 8.2 ? What are different methods to retrieve value from Application during runtime ?

3 Answers   HCL,


When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)

2 Answers  


While testing .net applications with QTP 9.1 in normal recording mode, QTP records my unintentional mouse clicks and window dragging which I don't want. But I can't stop QTP recording those mouse clicks and window dragging. Can somebody let me know how I can get rid of it, please ! Thanks.

1 Answers  


I want to create Excel object on another machine which is in network i written the code "Set se=createobject ("Excel.Application","\\ankur")"here \\ankur is the name of that machine but i m getting the error of permission denied create object can anybody help me

2 Answers  


Find the 'String' from excel sheet and save to another sheet.But we don't know the string column number and row number?

4 Answers  


Use of Debug Viewer?

1 Answers  


Explain how to use QTP to check broken links on a page?

0 Answers  


In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click

2 Answers  


1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?

0 Answers   HP,


What do you do if QTP doesn't recognize object ,what action should be taken

11 Answers   Lehman Brothers,


please post the interview questions for QA position in FACTSET

0 Answers   FactSet Systems,


Categories