Form for MonkeyTalk:-
Input user nameEnterText testing
Input password EnterText testing
Button LOGIN tap %thinktime = 3000
Button LOGOUT tap %thinktime =3000
Input user nametap
Input user nameEnter Text testing1
Input password Enter Text testing1
Button LOGIN tap %thinktime = 3000
Button LOGOUT tap %thinktime =
3000
Input user nametap
Input user name EnterText test2
Input password EnterText test
Button LOGIN tap
%thinktime=3000
Button LOGOUT tap
%thinktime=3000
Javascript Type form:-
load("libs/<monkey_projectName>.js");
<monkey_projectName>.
<script_name>.prototype.run = function()
{
this.app.input("user name").enterText("testing");
this.app.input("password").enterText("test");
this.app.button("LOGIN").tap({thinktime:"3000"});
this.app.button("LOGOUT").tap({thinktime:"3000"});
this.app.input("user name").tap();
this.app.input("user name").enterText("test1");
this.app.input("password").enterText("test1");
this.app.button("LOGIN").tap({thinktime:"3000"});
this.app.button("LOGOUT").tap({thinktime:"3000"});
this.app.input("user name").tap();
this.app.input("user name").enterText("test2");
this.app.input("password").enterText("test");
this.app.button("LOGIN").tap({thinktime:"3000"});
this.app.button("LOGOUT").tap({thinktime:"3000"});
};
Simple Login Script, form for MonkeyTalk, javascript used for login form monkey talk java script type form
..
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
No comments:
Post a Comment