how to write scripts in QTP?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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
Output values? i want a practical example
How to use output values in qtp ?
What do you to script when objects are removed from application?
what is vmodel?advantages and disadvantages of vmodel?
1)what is the quality process in QTP? 2)how to add the .tsr file in qtp through scripting?
Explain the types of object repository?
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
what is the difference between xmlutil and xmlDOM in qtp?
How Can I automate PDF forms using QTP9.2 ?
HOW TO AUTOMATE CAPCHA IMAGES while creating Gmail account
For what purpose to we use object repository in a application?also explain usage of obj.repository?