NativeScript / nativescript-dev-appium

A package to help with writing and executing e2e Appium tests in NativeScript apps
Apache License 2.0
70 stars 27 forks source link

Possibility to change appium capabilities for one test #232

Closed Serge-SDL closed 5 years ago

Serge-SDL commented 5 years ago

Hi! I cannot find a way to change capabilities between 2 group of specs. For exemple I need for one of my test to keep app installed, but not for the other ones.

what I need it something like that:

            capabilities.setCapability('noReset', true);
            driver = await createDriver();

I there already a way, or is it planned ? thanks!

ArmughanALi commented 5 years ago

One Quick way which i know is Skip others and run the test file .

describe.skip('setting scenario', () => {

SvetoslavTsenov commented 5 years ago

You can also simply use

await driver.driver.removeAppFromDevice('com.example.AppName');

Basically all commands can be found in appium docs

Screenshot 2019-08-08 at 13 11 29