On Monday, 14 January 2013 09:22:26 UTC+5:30, automation.lifegoeasy.com
wrote:
>
>
>
> On Sunday, 13 January 2013 11:23:21 UTC+5:30, Gaurav_Accenture wrote:
>>
>> Hi Guys,
>>
>> Please let me know the ans to the below question:-
>>
>> 1.Suppose on click of first page the second page opens but a submit
>> button is not present on web page.Which recovery scenario trigger,recovery
>> and post recovery options u will use?
>
>
> Answer - As a standard practice, automation script will check for
> existence of Submit button, if it does not find, will report failure in
> result. As a part of recovery scenario,
>
>> Trigger - Object state error, Post recovery:Proceed to next Test Case
>>
>>
> 2.There is a (3,3) table. "Capgemini is stored in 3,2 cell. I want to
>> retrieve the location of the table where "capgemini" is written.
>>
> Answer -
> - Take row count & column count of table
>
- run a for loop upto row count
- run a nested for loop up to column count
- read cell value using function getcelldata(row1,col1) &
compare the cell value with expected valued using strcompare
- if comparison returns true, print row & column number
>
>> 3. Write a function to retrieve "india" from the "country" drop-down
>> button.
>> Answer -
>
> - Take item count of list using property "itemcount"
- Run a for loop & read value using
Browser("").page("").listbox("").getitem(i)
'*i is for loop counter
- *compare fetched value with expected using strcompare
function
> --
>> A B
>>
> Blog - www.automation.lifegoeasy.com
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en