Invoke an application and login using QTP problem

I am trying to invoke an application and login to it using QTP.

I was able to use the systemutil.run to get the application to invoke, however, i can't get it to log in.

I did this in winrunner with the following code:

UserID = "XXX";
login_application(UserID);

invoke_application("path","db","",SW_SHOW);
Please login...

set_window ("Please login...", 32);
edit_set ("dfUser", User);
password_edit_set("dfPassword", "hwgucsgubx");
button_press ("pbOk");

I need the same concept to work in QTP. YOUR HELP IN APPRECIATED!!

Questions by RCBExpress

Showing Answers 1 - 6 of 6 Answers

rcb

  • Jul 19th, 2007
 




systemutil.run("Path of the Application.exe")

wait 2

If window("Window Name").exsit(10) then

window("window Name").winedit("Edit Box Name").Type("Login Name")

--- like this for Password.


if button exsit Click the Button.

  Was this answer useful?  Yes

giridhar123

  • Jan 14th, 2008
 

If you want to invoke any application we can do in this ways.
1. In Record and Run settings there is two options available
a. Record and run any windows’ based applications
b. Record and run these applications only
You have to select “b” it automatically opens the application while record and
play back. For that you need to browse the application which application you
need to invoke.
2. Systemutil.run”path of the application”
In this way application invokes while play back
3. Invoke application “Path of the application”
In this way application invokes while play back
4. Another way you select this “2” and “3” from Function Generator (F7)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions