Forum Discussion
Hello Hassan,
Thanks for the reply.
I am getting following error:
An Appium server error occurred: Failed to create a new session.
Server URL: 'https://abcd.pcloudy.com/appiumcloud/wd/hub'
Server message: '{
"code" : "ERR_INVALID_URL",
"input" : "http:\/\/172.24.180.18:null\/wd\/hub\/session"
}.'
But i can see that the device is getting connected and visible in pcloudy platform but session is not getting launched.
below is my code:;
function Test()
{
var capabilities = {
"appium:pCloudy_Username" : "abcd@plcoudy.com",
"appium:pCloudy_ApiKey":"jm7tv78bv2mc4bx6wym9yt65",
"DurationInMinutes":10,
"newCommandTimeout":600000,
"launchTimeout":900000,
"deviceName":"SAMSUNG_GalaxyS23_Android_14.0.0_e2f1f",
"platformVersion":"14.0.0",
"platformName":"Android",
"acceptAlerts":"true",
"automationName":" uiautomator2",
"appium:pCloudy_ApplicationName":"Orders.apk",
"appPackage":"com.pcloudy.orders",
"appActivity":"com.ba.mobile.LaunchActivity",
"appium:pCloudy_EnableVideo":true,
"appium:pCloudy_EnablePerformanceData":true,
"appium:pCloudy_EnableDeviceLogs":true,
}
var server = ("https://abcd.pcloudy.com/appiumcloud/wd/hub")
Mobile.ConnectDevice(server,capabilities);
var device = Mobile.Device();
}
The error is in pCloudy provided code, and related to pCloudy connection, and all three URL referenced in your post gives similar error when pasted in browser. One thing caught my attention, your script server value is different from pCloudy sample code
var server = ("https://device.pcloudy.com/appiumcloud/wd/hub")
As stated earlier TestComplete do not have any support claim for pCloudy integration, and since the integration claim comes strictly from pCloudy, the only constructive feed back you can get would be from pCloudy support or community.
I fail to see any TestComplete community member being able to assist on pCloudy integration issues. Good luck.
- tanveern7 months agoOccasional Contributor
Thanks Hassan for quick reply.
The below server name in my code "abcd" is just for representation the actual server name i don't wanted to disclose as it is company policy. The above server code in your case is provided on pCloudy web portal but it is a sample as we will not be able to access devices from it . This link is common to all who basically register to pCloudy but no devices will be available for you until you subscribe.
var server = ("https://abcd.pcloudy.com/appiumcloud/wd/hub")