This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
40 / 169
Feb 2015
11 days later

@Srikanth_Katakam,

I am trying to launch chrome browser on Moto x (Android kit kat) and Nexus 5(Lolipop).

Following things are done in the code:
1)Launch grid
2)I am having a dataprovider which feeds the mobile info as objects one after the other to tests I have configured the dataprovider to provide the objects parallely. Using this information i am preparing the desired capabilities which will be used for initalizing appium driver.
3)Launch appium servers as per the configuration mentioned in the dataprovider object and register it with hub
4)Execute the test.

The problem i am facing is that tests are executed in a single device but is failing when trying to execute it on another device. I am suspecting time issue or some config issue.

Can you please post the code for the above video, it would be helpful.

Thanks and regards,
Karthik

@karthik_holla,
@Srikanth_Katakam and @Appium_Master (Both are my accounts)

Whatever the test I executed using selenium grid was with Native apps/Hybrid apps. So Just now I tried with chrome browser and I was able to successfully execute the single scripts on both the devices Sequential one after another.
[I'm using Galaxy Note 2 and Galaxy Note 3 (both are in Android kit version)]

@Srikanth_Katakam @Hassan_Radi @rgonalo
@Arvind_Patel @Appium_Master

Sequential execution i am able to do. But the question is that can test scripts be executed in parallel?

As per my observation parallel execution is not happening as chromedriver was created when executing on one of the mobile, until this process is killed or exited launching of chrome on another mobile was not possible.

Please let me know if this observation is correct?? also can you help with overcoming this issue?

Thanks and regards,
M.Karthik

25 days later

Hi @Appium_Master,I have seen your video posted.it's a nice video... I'm trying to connect my android device to the grid..when adb connect ...it shows below error.

How can i resolve it?Please suggest me that how to connect to the grid.

I saw your video twice..nice video. Ya it is resolved. Thank you @Appium_Master .But I'm unable connect through Grid. it is showing error.. Could you please go through the following link,my post looks there.

@bhaskar
{
"capabilities":
[
{
"browserName": "note3",
"device": "Appium",
"version":"",
"maxInstances": 1,
"platform":"ANDROID"
}
],
"configuration":
{
"cleanUpCycle":2000,
"timeout":10000,
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"url":"http://localhost:4568/wd/hub",
"maxSession": 1,
"port": 4568,
"host": "localhost",
"register": true,
"registerCycle": 5000,
"hubPort": 4040,
"hubHost": "localhost"
}
}

I have done the same as u said...but again it shows the same error...

@Appium_Master , please suggest me to get out of this error...Thank you in advance.!!!

Hi @bhaskar ,
'Cannot find module' is a node error, not an appium or grid related error.
If you are using AppiumForWindows, you must execute "node node_modules/appium" from AppiumForWindows folder instead of "node .".

Hi @rgonalo.. Many Thanks for your reply.!!! I'm not using Appium for windows(.exe)... i have installed it through command prompt by node.js..like " npm install -g appium "

Appium 1.34
Windows 7

Thanks alot @rgonalo . its working fine a bit...but showing error..

My json file looks like as follows.. Are there any changes required? Please let me know if any..!!! Thanks in advance.

{
"capabilities":
[
{
"browserName": "ANDROID",
"device": "LG Nexus5",
"version":"4.4.2",
"maxInstances": 1,
"platform":"ANDROID"
}
],
"configuration":
{
"cleanUpCycle":2000,
"timeout":10000,
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"url":"http://localhost:4723/wd/hub",
"maxSession": 1,
"port": 4723,
"host": "localhost",
"register": true,
"registerCycle": 5000,
"hubPort": 4444,
"hubHost": "localhost"
}
}

I have tried alot with many nodeconfig.json files, again and again it shows the same error...even i have tried with the samples posted by many others....i couldn't get the result except the error as follows,