my script for login repeating again and again for as it need to stop after taking all datas from exc
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
my script for login repeating again and again for as it need to stop after taking all datas from exc
def login(password):
# Valid password
TestedApps.sac.Run(1, True)
delay(5000)
# Find password input field and enter the password
password_input = Sys.Process('sac').Find('Name', 'QtObject("g_password_lineedit")', 10);
password_input.Keys(password)
# Find and click the login button
login_button = Sys.Process("sac").QtObject("MainWindow").QtObject("g_main_widget").QtObject("g_screens_frame").QtObject("LoginScreen").QtObject("frame").WaitQtObject("g_login_button",6000);
login_button.Click()
delay(5000)
log_out = Aliases.sac.MainWindow2.g_main_widget.g_toolbar_frame.g_right_toolbar_frame.ToolButton;
delay(5000)
log_out.ClickButton()
Runner.Stop()
for this code i wantg to stop after login as it take all input from excel but its running again so i used runner.stop which making test cases fail please suggest me the trick
- Labels:
-
Desktop Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Don't use Runner.Stop()?
Are you using data driven testing? What data is in Excel? If you can provide more details, that will help us in resolving the issue you are having.
