I have application "Application" , which have same autorization service as skype, QQ etc (You must log using yours login/password) I need to test some functionality in settings of this application, so I`m using testcomplete :
And its quite simple. But if you are logged of, I need to reproduce such scenario:
How I can reproduce such functionality in TestComplete? I`m newbie with it so I need help :) Thanks
Make your test check whether the login window is displayed. You can do this using one of the Wait* methods. If the login window is displayed then call a test routine/keyword test that will perform a login and then continue the general test flow.
...
var loginWindow = Sys.Process("Application").WaitWinFormsObject("loginDialog", 3000);
if (loginWindow.Exists) {
doLogin();
}
...
function doLogin()
{
// perform login
}