Forum Discussion

tanveern's avatar
tanveern
Occasional Contributor
4 months ago

TestComplete integration with Pcloudy

Hey everyone,

I’ve can found out on pCloudy  official webportal that they are  supporting TestComplete now. Has anyone explored this integration yet? Would love to hear about your experiences and any insights you might have.

I am trying to integrate pcloudy  with testcomplete but with no success. any help here would be appreciable

 

Thanks in advance!

6 Replies

  • I am intrigued as SmartBear have there own mobile solution. I see pCloudy detailed instruction on how to integrate and that makes me wonder.

    What kind of failure do you get? Is it error in TestComplete or in pCloudy?

    I don't see a community for pCloudy, perhaps you can get support from pCloudy.

  • tanveern's avatar
    tanveern
    Occasional Contributor

    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();
    }

    • Hassan_Ballan's avatar
      Hassan_Ballan
      Icon for Champion Level 2 rankChampion Level 2

      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.

      • tanveern's avatar
        tanveern
        Occasional 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")

  • To integrate pCloudy with TestComplete, ensure both tools are updated, install the required pCloudy plugin, and configure API credentials. Select a cloud device from pCloudy and set up TestComplete to run tests on it. If issues arise, check logs or reach out to pCloudy support.