Comments (3)
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.
@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 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wdio-aws-device-farm-service.