Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile Support Appium Start Stop #22

Closed
rahulmr opened this issue Aug 8, 2016 · 7 comments
Closed

Mobile Support Appium Start Stop #22

rahulmr opened this issue Aug 8, 2016 · 7 comments
Assignees
Milestone

Comments

@rahulmr
Copy link

rahulmr commented Aug 8, 2016

Hello Julien,

Is it possible to support appium start stop using gulp-angular-protractor?
Please check the link where webdriver-manager supports mobile.

Please suggest how this can be implemented.
Thanks in advance.

@rochejul rochejul self-assigned this Aug 9, 2016
@rochejul rochejul added this to the 0.2.0 milestone Aug 9, 2016
@rochejul
Copy link
Owner

rochejul commented Aug 9, 2016

Hi,

It seems I need some refactoring, and to not use anymore gulp-protractor, because this one is very limited around the webdriver update instructions:

var webdriver_update = function(opts, cb) {
    var callback = (cb ? cb : opts);
    var options = (cb ? opts : null);
    var args = ["update", "--standalone"];
    if (options) {
        if (options.browsers) {
            options.browsers.forEach(function(element, index, array) {
                args.push("--" + element);
            });
        }
    }
    child_process.spawn(path.resolve(getProtractorDir() + '/webdriver-manager'+winExt), args, {
        stdio: 'inherit'
    }).once('close', callback);
};

Where we need to raise some instructions like so:

webdriver-manager update --android --android-api-levels 23 --android-abis armeabi-v7a

So I will create an experimental branch as soon as possible and try to check if it works

Thanks for your contribution

Cheers

Julien Roche

@rochejul
Copy link
Owner

I will update too the protractor version and so close the issue #24

Cheers

@rahulmr
Copy link
Author

rahulmr commented Aug 24, 2016

Thanks a lot!

@rochejul
Copy link
Owner

Hi,

Can you try to use this branch: https://github.com/rochejul/gulp-angular-protractor/tree/experimental/appium

And so declare into your gulp file:

gulp.task('protractor', function(callback) {
    gulp
        .src(['example_spec.js'])
        .pipe(gulpProtractorAngular({
            'configFile': 'protractor.conf.js',
            'debug': false,
            'autoStartStopServer': true,
            'verbose': false,
            'webDriverUpdate': {
                'args': ['--android', '--android-api-levels', '23', '--android-abis', 'armeabi-v7a']
            }
        }))
        .on('error', function(e) {
            console.log(e);
        })
        .on('end', callback);
});

Many thanks

Cheers

@rahulmr
Copy link
Author

rahulmr commented Sep 2, 2016

I am not aware how to use npm install for using the beta version of this package. Can I use the example present in the examples section or I will have to use my own?

@rochejul
Copy link
Owner

rochejul commented Sep 2, 2016

Simplify do:

npm install --save-dev https://github.com/rochejul/gulp-angular-protractor/tree/experimental/appium

It will declare as devDepency "gulp-angular-protractor" and download the code associated to the Git branch.

Cheers

@rochejul
Copy link
Owner

Hi

Have you got some feedbacks ?

Can I integrate the new branch ?

Many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants