[英]Running tests in parallel on the mobile app and web browser
Help me guys.帮帮我,伙计们。 I need to run the e2e tests in parallel on mobile app and on the web browser, then make some changes on mobile app and check the changes on the web browser and vise versa several times.我需要在移动应用程序和网络浏览器上并行运行 e2e 测试,然后在移动应用程序上进行一些更改并检查网络浏览器上的更改,反之亦然。 I plan to use webdriver.io + appium(as a service for webdriver.io).我计划使用 webdriver.io + appium(作为 webdriver.io 的服务)。 But if exists other frameworks or tools for this, I can use them.但是如果存在其他框架或工具,我可以使用它们。
Case, for example:案例,例如:
You can use wdio multi remote to achieve this.您可以使用 wdio multi remote 来实现这一点。 Your config should look like below and you can access the app with the appiumDriver.doSomething() and browser with chromeBrower.doSomething() in steps:您的配置应如下所示,您可以使用 appiumDriver.doSomething() 访问应用程序,并使用 chromeBrower.doSomething() 分步访问该应用程序:
capabilities: {
appiumDriver: {
port: 4723,
capabilities: {
// maxInstances: 1,
platformName: 'Android',
deviceName: 'Pixel_4',
app: join( process.cwd(), '<path to apk>' ),
autoGrantPermissions: true,
appWaitActivity: '*',
fullContextList: true,
webviewConnectTimeout: 10000,
},
},
chromeBrowser: {
port: 4444,
capabilities: {
browserName: 'chrome'
},
},
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.