Git Product home page Git Product logo

Comments (3)

arnulfojr avatar arnulfojr commented on May 29, 2024

Hi,

The session ID can be retrieved through the Browser object https://webdriver.io/docs/api/browser#properties

To build the DeviceFarm session ARN you will need your Project ARN, the following ARN format can be used:

arn:aws:devicefarm:us-west-2:{accountId}:testgrid-project:{TestGridProjectId}

arn:aws:devicefarm:us-west-2:{accountId}:testgrid-session:{TestGridProjectId}/{TestGridSessionId}

Otherwise you can take a look into DeviceFarm public docs

https://docs.aws.amazon.com/devicefarm/latest/testgrid/managing-sessions.html

Resolving issue, feel free to re-open it if you'd have more questions.

from wdio-aws-device-farm-service.

robbrad avatar robbrad commented on May 29, 2024

@arnulfojr If im using the wdio testrunner

like this in node

            wdio.run().then(
                exitCode => {
                    process.exit(exitCode);
                },
                error => {
                    console.error('Launcher failed to start the test', error.stacktrace);
                    process.exit(1);
                },
            );

Is there a way I can access the sessionId as you have mentioned?

from wdio-aws-device-farm-service.

arnulfojr avatar arnulfojr commented on May 29, 2024

@arnulfojr If im using the wdio testrunner

like this in node


            wdio.run().then(

                exitCode => {

                    process.exit(exitCode);

                },

                error => {

                    console.error('Launcher failed to start the test', error.stacktrace);

                    process.exit(1);

                },

            );

Is there a way I can access the sessionId as you have mentioned?

Hi,

I believe the problem there is that your runner first needs to instantiate a session. Wdio basically spawns new child processes for each runner which each would create a session, and it would then be available through the Browser global variable.

Afaik it's not possible to access the session from the runner. You would have to access it through the Browser instance.

from wdio-aws-device-farm-service.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.