parallel test with appium & selenium grid

前端 未结 2 1224
孤街浪徒
孤街浪徒 2021-01-21 23:24

I\'m trying to run parallel test on 2 devices using appium & selenium grid but for some reason it runs only on the first node server (and first device) but nothing happen on

2条回答
  •  暖寄归人
    2021-01-21 23:28

    The problem is because neither have you provided anything that is unique in your DesiredCapabilities nor have you added a custom CapabilityMatcher. By default the Grid uses only the browserName, version and platform to decide which node a test is to be routed to.

    Here's one way of fixing the problem. Add a new key named "applicationName" to your nodeConfig.json and set the values of "OnePlusOne" and "SamsungS6" respectively. You then add a new capability named "applicationName" to your desired capability in your test and then set the value of "OnePlusOne" and "SamsungS6" respectively. After this your test would be routed to the correct device.

    You can read more about this in my blog post here.

提交回复
热议问题