Automation Test – Can you use Protractor and AppIum to test a hybrid application?

This is my scenario. I have a website built on Angular JS. I am able to use the protractor to automate the website. However, some operations performed on the website will be reflected in Android And IOS devices.

This is what I want to achieve.

Run my tests on the website as usual, but I want to issue commands to test android And ios application

/*
For eg:
1. Change password on website using protractor
2. Launch android app and check if the password has been changed
3. Switch back to protractor tests for website
*/
it('Change password and check on IOS and Android device', function()
{
changePasswordOnWeb();
OpenMobileAppInDeviceUsingAppium();
checNewkPasswordOnMobileApp();
});

Is it possible? If yes, can you point me to any tutorials?

To answer your question, yes, you can integrate protractor and appium. Although as of now, Protractor does not officially support appium, but you can still achieve this with the following details. A help file is provided in the Protractor docs. All you need to do is update the conf.js file to include the appium configuration, and remember to run the test script Start the appium server before. Take care of the following points-

>Start your avd
>Install the .apk file in the avd you will call via appium
>Use the command to start appium Server-appium&
>Update your protractor conf.js file to include appium android/chrome configuration. For more details about configuration, please see the link below.

This is more about this Information link – Protractor-Appium Setup. Hope this helps

This is my scenario. I have a website built on Angular JS. I can use the protractor Automate the website. However, certain actions performed on the website will be reflected in Android and IOS devices.

This is what I want to achieve.

As usual Run my tests on the same website, but I want to issue commands to test android and ios applications

/*
For eg:
1. Change password on website using protractor
2. Launch android app and check if the password has been changed
3. Switch back to protractor tests for website
*/
it('Change password and check on IOS and Android device', function()
{
changePasswordOnWeb();
OpenM obileAppInDeviceUsingAppium();
checNewkPasswordOnMobileApp();
});

Is it possible? If yes, can you point me to any tutorials?

To answer your question, yes, you can integrate protractor and appium. Although as of now, Protractor does not officially support appium, you can still pass The following details achieve this goal. A help file is provided in the Protractor docs. All you need to do is update the conf.js file to include the appium configuration, and remember to start the appium server before running the test script. Take care of the following points –

>Start your avd
>Install the .apk file in the avd you will call through appium
>Use the command to start the appium server – appium&
>update your protractor conf .js file to contain the appium android/chrome configuration. For more details about the configuration, please see the link below.

This is the link for more information about this – Protractor-Appium Setup. Hope this works Help

Leave a Comment

Your email address will not be published.