how to write scripts in QTP?

Answers were Sorted based on User's Feedback



how to write scripts in QTP?..

Answer / malathi

Using methods in object spy we can write scripts.
using step generator we can write scripts.

Is This Answer Correct ?    8 Yes 2 No

how to write scripts in QTP?..

Answer / tripti arya

Scripts in QTP can be generated through recording or through
descriptive programming.Use object spy for descriptive
programming.

Is This Answer Correct ?    1 Yes 1 No

how to write scripts in QTP?..

Answer / kalyana chakravarthy

HI This is Chakravarthy.

If u know "C" language it is very easy to write VB Script.

and u have to know how can we use Scripting in QTP.

for ex. we wil use if conditions,nested if,for loops,while
loop,variable diclarations,functions,......etc in QTP.

all this topics come under "C" Language.

If u have any Queries contact me at

mskalyan.smile@gmail.com

Is This Answer Correct ?    1 Yes 2 No

how to write scripts in QTP?..

Answer / somalatha

first of all, by recording, scripts can be automatically
generated. other ways include through editing scripts,
using step generator, capturing through text check points
and through descriptive programming

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More QTP Interview Questions

To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0

2 Answers  


Output values? i want a practical example

0 Answers  


How to use output values in qtp ?

0 Answers  


What do you to script when objects are removed from application?

0 Answers  


what is vmodel?advantages and disadvantages of vmodel?

0 Answers   AZTEC,






1)what is the quality process in QTP? 2)how to add the .tsr file in qtp through scripting?

1 Answers   L&T,


Explain the types of object repository?

0 Answers  


How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks

0 Answers  


what is the difference between xmlutil and xmlDOM in qtp?

2 Answers  


How Can I automate PDF forms using QTP9.2 ?

0 Answers  


HOW TO AUTOMATE CAPCHA IMAGES while creating Gmail account

2 Answers   TCS,


For what purpose to we use object repository in a application?also explain usage of obj.repository?

3 Answers  


Categories