Hi,
I am new to QTP and vb.script.How to start to write
vb.script in QTP? Please give me suggestions?
Answer Posted / satyanarayana
Hi dear it is very easy to write vb scripting.
First of all we have to understand what the actions to be
performed by us on the application.
Actions means entering a value or clicking a button or
selecting a value from a list dropdown list or selecting or
deselecting a check box.
example for a edit box
Browser("browsername").Page("pagename").Webedit("username").set"satyanarayana"
like the above for buttons .click
for list boxes .select"satyanarayana"
for radio buttons .set
for check boxes .set"on/off"
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Explain the parameter in qtp?
QTP script is not working on other's machine..
Explain how Selenium is different from UFT?
What is the file extension of the code file and object repository file in QTP?
Mention the different actions types of qtp.
Whats the realtime QTP testing process
What are the methods used in UFT to handle exceptions or run-time errors?
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
Explain how qtp identifies object?
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
how to create flat file datasubmission in qtp
how u will evaluate the tool for test automation?
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)