recording is not a good programming practice.How to write
effective script without recording.Which is the correct
method explain in detail
Answers were Sorted based on User's Feedback
Answer / rajanikanthreddy
In qtp we are having descriptive programmming..with using
object properties and values qtp idintify the objects
ex...browser("name:=google").page("title:=google") like
that we are identifying object...here we are not using any
memory(repository) this is use of descriptive
programming...try it
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / deven
Yes, Recording is not a good practice effective scripting
is
1. Writing VB Script and Descriptive programmming
2. Use different types of Frame work in your project
3. Use Expert view for VB scripting
4. Use more Function Library
5. Use Constants (public)
6. Use Subroutine
7. Follow the Standard Programing practice
8. Use conditional, logical operator in scripting
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / srini
Question is wrong..How can recording is not good practice ?
It's always depends up on the application under test.If the application is stable like SAP, or desktop applications, Descriptive programming is time killing..recording is much easier and time saving..
Is This Answer Correct ? | 0 Yes | 0 No |
did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions
How to Identify broken links in QTP
how you test broken link using the automated tool QTP ?
I m trying to automate one vb desktop application in that there is vblist vbcombobox many other vb tools are there ,when i m trying to find some unique property to identify the object (take example of vbcombobox ) I cannot find any unique property, all the combobox belong to same nativeclass same name no ids are available ,only the distinct property is there x and y coordinates so i m using some code like this "vbbutton "nativeclass:=ThunderRT6CommandButton","x:=304","y :=443").exist(2)" but i dont find them reliable .Can anyone suggest me some other way to identify those objects with some unique property or is there any way to register our own property .I m using descriptive programming to write the code .Thanks in advance
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
Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach
What do you mean by iteration?
Explain step generator in qtp?
How do you export an output to a excel sheet? Ex: I get my answer by using Msgbox"..." &R. How do I displayed the result of the Msgbox (such as R) to an excel sheet? Please let me know.Thanks
How can we QTP Scripts in xml format? is there any way to do so?
What are the different attributes used with regular expression?
Hai anyone please "Explain about Framework in QTP?"