i am new to qtp i do not know how to write script
how to write the code to login if it fails how to able
error messages

Answer Posted / satyaprasad

dialog("login").active
dialog("login").winedit("username").set"asdf"
dialog("login).winedit("password").setsecure"amxcer013m34ee"
dialog("login").winbutton("ok").click

Note:for descriptive programing we must add the objects of
the application to "Object repository"

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of Debug Viewer?

1478


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

569


How to open a new test using quicktest professional?

560


Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1515


What is Cross browser testing? Does UFT support it?

612






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)

1402


What is different command used in command Prompt while using QTP?

1735


How to customize checkpoints with parameters?

3012


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?

554


What is the differences between image check point and bit map check point?

574


what is actually contain test report? can anybody post the test report

1464


How to find the length of the string in qtp?

570


in my application,validation message has in japanise language.how to validate this message is appears properly or not

1510


Explain quicktest professional (qtp) testing process?

530


What is the difference between run time object and test object in QTP?

558