[AWS Device Farm] Connection issue #3176
vaibhavsingh97
started this conversation in
General
Replies: 1 comment 2 replies
|
@mostmentor Please use the following var AWS = require('aws-sdk');
const PROJECT_ARN = '<arn:aws:devicefarm:us-west-2:XXXXXXX:testgrid-project:xxxxxxxxxxxx>';
const devicefarm = new AWS.DeviceFarm({region: 'us-west-2'});
const getAwsGridURL = async () => {
// Get the endpoint to create a new session
const testGridUrlResult = await devicefarm.createTestGridUrl({
projectArn: PROJECT_ARN,
expiresInSeconds: 600
}).promise();
return testGridUrlResult.url;
};
const settings = getAwsGridURL().then((aws_grid) => {
const AWS_GRID = new URL(aws_grid);
return {
test_settings: {
default: {
selenium: {
'start_process': false,
'host': AWS_GRID.host,
'default_path_prefix': AWS_GRID.pathname,
'port': 443
},
'desiredCapabilities': {
'browserName': 'chrome'
}
},
}
};
});
module.exports = new Promise(resolve => {
resolve(settings);
}); |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
config file I'm using
Some tests are not connecting to the grid and throw this error
⚠ Failed to connect to Selenium Server on testgrid-devicefarm.us-west-2.amazonaws.com with port 443.
Originally posted by @mostmentor in #3094 (comment)
All reactions