Automated Testing is a good concept. Most of the testers go for manual testing in spite of huge cost benefits by automated testing. The following reason is cited for not using automated testing,
| Quote: |
| Changes in Web Interface/User Interface will make the test automation not feasible. |
| Quote: |
| Create scripts using defined functions instead of recording every script. |
| Code: |
|
launchApplication("about:blank") changeURL("http://opman-winxp/",5) setWindow( "AdventNet OpManager",1) setText("userName","admin",1) setText("password","admin",1) clickImage("http://opman-winxp/webclient/common/images/Login_submitBut.gif",6) |
| Code: |
|
def login(usename,password): launchApplication("about:blank") changeURL("http://opman-winxp/",5) setWindow( "AdventNet OpManager",1) setText("userName",usename,1) setText("password",password,1) clickImage("http://opman-winxp/webclient/common/images/Login_submitBut.gif",6) |
| Code: |
|
login(admin,admin) |
| Code: |
|
def login(usename,password): launchApplication("about:blank") changeURL("http://opman-winxp/",5) setWindow( "AdventNet OpManager",1) setText("userName",usename,1) setText("password",password,1) clickImage("http://opman-winxp/webclient/common/images/Login.gif",6) |
Post Comment