我成功地在SauceLabs上运行了我的量角器测试,尽管我希望能够将我的测试名称发送到该服务,例如,我的所有测试都是按浏览器名称分组的。
有没有办法将测试名称传递给SauceLabs?
发布于 2014-11-06 20:02:39
发布于 2014-12-23 02:00:00
如果在测试过程中使用的是JSON sessionId,那么只需向the REST API发送一个SauceLabs数据包即可。
curl https://saucelabs.com/rest/v1/users/USERNAME -u YOUR_USERNAME:ACCESS_KEY您可以通过启动手动SauceLabs会话,从中获取会话ID,然后在浏览器JSON REST客户端(如'Postman‘)中手动发送API请求来测试这一点。
发布于 2015-06-16 09:09:50
您可能只需要添加如下内容:
var testName = 'Testing'; //Change Project's name here in order to be identified in BrowserStack
// An example configuration file.
exports.config = {
// The address of a running selenium server.
seleniumAddress: 'http://xxxxx:xxxxx@ondemand.saucelabs.com:80/wd/hub',
//seleniumAddress: 'http://hub.browserstack.com/wd/hub',
//seleniumAddress: 'http://127.0.0.1:4723/wd/hub',//Local Appium
// Capabilities to be passed to the webdriver instance.
multiCapabilities: [
{
name: testName,
platformName: 'iOS',
platformVersion: '7.1',
browserName: '',
app: 'safari',
deviceName: 'iPhone Simulator',
'appium-version': "1.4.0",
username: 'xxxxxx',
accessKey: 'xxxxx'
}
,
{
name: testName,
platformName: 'Android',
platformVersion: '4.4',
browserName: 'Browser',
deviceName: 'Android Emulator',
'appium-version': "1.4.0",
username: 'xxxxx',
accessKey: 'xxxxx'
}
],https://stackoverflow.com/questions/26776038
复制相似问题