I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW
TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS
EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR
FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE.
APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING
WINRUNNER CODE TO QTP.

set_window("Customer Service");
rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1);
if (rc != E_OK) {
report_msg("[GetSubscriberSummary] Could
Not get subscriber SSN; rc = "&rc);
myRC = rc;
} else {
ssn = StripBlank(ssn);
if (DEBUG) report_msg
("[GetSubscriberSummary] SSN: "&ssn);
}


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More QTP Interview Questions

Hello everyone, I am trying to parametrize a script. Its clear to me that, we use data table to enter various text data. but if I want to change the radiobutton (e.g. if for first iteration I selected radio button 'A' and for second iteration I want to use 'B' radio button for second iteration) then how can I make it happen. I have tried to define the question but still if not clear plz tell me. Thanks everyone

1 Answers  


How will you handle application crash using recovery scenario manager(step by step process)?

1 Answers  


How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..

0 Answers  


How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.

0 Answers  


hi radhaka plz tell me clearly to handle the earrors with out isng recovery scnerio this is sreenivas from delhi

2 Answers  


How to set the function parameters as optional. Pls anybody can give the answer.. Thanks in advance...

2 Answers   Navis,


How to capture checkbox properties when properties of the object keep changing on relogin to the application.

0 Answers   TCS,


what is recovery manager and recovey scenerio?

2 Answers   BirlaSoft,


Differences between text and test area checkpoints?

0 Answers  


hi i have one isuue on selecting webcheckbox .there are 15 wecheckboxex i want to select every time 9 th one how can i select plese help me regards balaji

4 Answers  


Can launch two instances of qtp on the same machine?

0 Answers  


Can you write User defined function for WebEdit ? Note1: This function can be used for all web edits in all pages Note2: Don't use Child objects method

1 Answers   IBM,


Categories