MTAF Setup to run mobile automation

There is no major changes / setup that we need to do to run this automation. Please follow the below setup in MTAF.
Environment. tsv change

Environment tsv changes.

We have a webapps folder for each application. Go to your webapp folder > Open your environment.tsv file.
Find the RcServer column and enter this URL ­ http://127.0.0.1:4723/wd/hub

This is the URL for your Appium Server. In this case, you local desktop is your Appium Server.

If you do all the above setup in some other server, then you need to enter the server IP ­ http:<appiumServerIP>:
<portNumber>/wd/hub

You can change any port number in appium server.
New profile addition.

Go to AutomationInput folder. > Right click > Add web profile folder.
Click the web profile folder > right click > Add webprofile.
Name it as android

Enter the below capabilities.

!!org.alu.mtaf.automation.ui.web.profile.MtafProfileCapability
capability:
­ { key: ‘platformName’, value: ‘Android’, type: ‘string’}
­ { key: ‘platformVersion’, value: ‘6.0.1’, type: ‘string’}
­ { key: ‘deviceName’, value: ‘LG­Stylo2’, type: ‘string’}
­ { key: ‘appPackage’, value: ‘com.android.chrome’, type: ‘string’}
­ { key: ‘appActivity’, value: ‘org.chromium.chrome.browser.document.DocumentActivity’, type: ‘string’}

For all the above keys, you can find the value in your mobile phone. The platform name is common (Android)
For platformVersion, you can find it in your mobile settings.

For Device name, once you have all the above setup, Connect your device through USB, then Go to your mycomputer, then you can find
your device name.

For appPackage and appActivity, We use chrome as default.
SUT selection.

when you start running the scripts, you must select the SUT as below.

Organization and Environment is based on your environment.
In the Browser settings, Right click and add a new browser as ‘android’
For Web, MTAF will automatically take it from webprofile once you created.

Advertisements