I am in need of some set of QTP FAQ @ interview.
Also recently in one of interview portal they asked me how
you write the script for Login application which it is web
-based and using Descriptive Programming? Without
associating the shared object repository?Please i do need
this answer very soon? Please respond me soon @
vaisu72@yahoo.com
Answer Posted / dileep kumar
By using Descriptive we can write the test script for web based Login application.
Script: for QTP sample application:
Dialog("text:=Login").winedit("attached text:= Agentname").set"abcdef"
Dialog("text:=Login").winedit("attached text:= password").set"mercury"
Dialog("text:=Login").winbutton("text:= OK"),click
****************************************************
Like this by adding the unique properties and values of the object we can write descriptive program.
Note: >>>Some times the object needs more than one property to identify.
>>>> Better to use Object Spy to get the object properties and vales...
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How you can replace string in qtp?
What is the difference between the keyword view and expert view?
What is the standard timing delay for web based application in qtp?
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)
Have you used xml check point in your project?
What is the difference in testing a client-server application and a web application?
What are the types of object repositories? Which one is you are using?
Difference between test object and run time object?
What is test object model in quicktest professional?
Can the user toggle between using Local OR and shared OR for the same action?
What are the different attribute used with regular expression?
How to get popup error message.
In qtp, explain what is keyword driven automation framework?