Forum Discussion

tcarrington's avatar
13 years ago
Solved

Order Sample - "username object"

Very new to test complete trying to run through a few of the sample scripts to get an idea on how things work.



When I run the "Order Sample" I get to a webpage waiting for the 'Username Object'.  I have tried to pause the script (nothing happens, keeps running), and i have tried to  type in the username/password ('object does not exist' test fails).



I have read through the script and understand what it should be doing, but I am just a bit confused on where I am supposed to define these objects (usename, password, etc.).



Here is the code:




function Login(page, username, password)


{


  var panel = page.Aspnetform.panel;


  panel.Username.SetText(username);


  panel.Password.SetText(password);


  panel.submitbutton.Click();


  page.Wait();


}





The waiting message:







Thanks for your help!



-Taylor

 


  • Hi Taylor,


     


    When the test execution is stopped, you will see several error messages in the test log. Look into the Additional Info tabs of these errors - they give you detailed description of what is going on.


     

1 Reply


  • Hi Taylor,


     


    When the test execution is stopped, you will see several error messages in the test log. Look into the Additional Info tabs of these errors - they give you detailed description of what is going on.