MonkeyTalk Command Description of each part of MonkeyTalk Commands, Syntax of MonkeyTalk



MonkeyTalk Command Description of each part of MonkeyTalk Commands, Syntax of MonkeyTalk

MonkeyTalk Command :-
All these commands of MonkeyTalk are very easy for understanding. Non technical person mean who is not programmer can understand easily the commands of MonkeyTalk.

Syntax of MonkeyTalk: MonkeyTalk commands have following syntax and are newline terminated:

ComponentType MonkeyId Action Arguments Modifiers

These all are the part of commands of monkeytalk. ComponentType.Action is well knows as the name of command. MonkeyTalk Command will be terminate by the new line.

Description of each part of MonkeyTalk command

Componenttype:
This is the Required field or mandatory field of MonkeyTalk command. In this part we have to explain the component type where we like to process the action. For an example:- Slider, Button, Spinner etc. Remember component type is not the case sensitive.

MonkeyId: → This is also a required field for the MonkeyTalk command. An identifier which is use to differentiate between the components of same type being displayed simultaneously.
→ MonkeyTalk id field is case sensitive.
→ Monkeyid can be specified with (*) asterik which can be find for the first match component.
→ Monkeyid can al;so specify as a 1 based (Not the Zero) index of the form #N.

Action :
Monkeytalk command have a required field named as Action. This field you need to explain the performed action like Select, Tap, Swipe, Drag, EnterText. Actions are not the case-sensitive.

Arguments:
This is not the required or mandatory field of Monkey Talk. It can be required according to the Action.Arguments and ComponentType separate by the spaces. If an Argument is require or mandatory but not specify then it take a default value.

Modifiers:
This is optional field and not the required field. Mainly there are following 3 system defined modifiers =:
%timeout = Before timing out how long in ms to continue retrying a commands
%thinktime = Before running the command for the First Time how long in ms to wait.
%retrydelay = how long in ms to delay in between the retry attempt

Important Points which are required to remember:

→ CommandTypes and Actions are not case sensitive but MonkeyIds and Args are case-sensitive.
→ All tokens will be space separated
→ Values with embedded blank must be enclosed with in the quote

Examples of MonkeyTalk:
Tap on a button with the login label

InIn MonkeyTalk i.e. in .mt form

Button LOGIN tab %thinktime=3000

In javascript form i.e. in .js

this.app.button(“LOGIN”).tap({thinktime:”2000”});

Where buttons are componenttype, login is monkeyid and thinktime is modifier and Tap is action.






Near Field Communication Support NFC Smart Poster Support













Use of add-ins
Cookies in QTP


Mobile Testing with QTP How to install .ipa files for ipad iphone



Touch Screen Simulating User Gestures


MOBILE APPS    QTP TESTING QUESTIONS  MANUAL TESTING  ANDROID APPS


No comments:

Post a Comment

Popular Posts