Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to send desired capabilities to saucelabs #20

Closed
horaceheaven opened this issue Dec 5, 2014 · 9 comments
Closed

Unable to send desired capabilities to saucelabs #20

horaceheaven opened this issue Dec 5, 2014 · 9 comments

Comments

@horaceheaven
Copy link

I am unable to send desired capabilities to sauce labs. I would like to send it with the following command: Open Application ${REMOTE_URL} ${PLATFORM_NAME} ${PLATFORM_VERSION} ${DEVICE_NAME} ${APP}, but from looking at the documentation here ==> http://jollychang.github.io/robotframework-appiumlibrary/doc/AppimuLibrary.html#Open Application, i'm not seeing a way how to do so. The reason I need to send it, sauce labs requires me to specify the version of appium to use for app testing. Can you provide some insight into this, thanks.

@jollychang
Copy link
Collaborator

which version do you need?
I can't find version of appium from docs
http://appium.io/slate/en/v1.0.0/?python#server-flags

@horaceheaven
Copy link
Author

I need version 1.3.x
Usually when doing browser testing on saucelabs, I send the desired capabilities in the following fashion:

Open Test Browser
    Open browser  ${APP_URL}/${QA_VERSION}/    ${BROWSER}
    ...  remote_url=${REMOTE_URL}
    ...  desired_capabilities=${DESIRED_CAPABILITIES}
    Maximize Browser Window

But for some reason when doing native app testing and passing the desired_capabilities to the api as shown above, saucelabs doesn't receive it in the correct format.

Open App
   Open Application    ${REMOTE_URL}    ${PLATFORM_NAME}    ${PLATFORM_VERSION}    ${DEVICE_NAME}    ${APP}
       ...  desired_capabilities=${DESIRED_CAPABILITIES}

desiredCapabilities: {"deviceName":"iPhone Simulator","takesScreenshot":"true","automationName":"desired_caps=appiumVersion: '1.3.3', app: 'sauce-storage:todo.zip', platformName: 'iOS', platformVersion: '8.1', deviceName: 'iPhone Simulator'","androidActivity":null,"appWaitPackage":null,"platformVersion":"8.1","appPackage":null,"platformName":"iOS","appWaitActivity":null,"bundleid":null}

Desired capabilities should be a key instead of a value.

@jollychang
Copy link
Collaborator

where is the doc?
you need "automationName":"desired_caps=appiumVersion: '1.3.3', ?

@horaceheaven
Copy link
Author

https://docs.saucelabs.com/tutorials/appium/#appium-for-ios-on-sauce-labs
desiredCapabilities:{"appiumVersion": "1.3.3",...

@horaceheaven
Copy link
Author

This might be useful as well ==> https://docs.saucelabs.com/reference/platforms-configurator/#/

@horaceheaven
Copy link
Author

I'm seeing this error when running the scripts now ==> NameError: global name 'appium' is not defined

@jollychang
Copy link
Collaborator

Could you check with saucelab and open a pull request?

On 2014Äê12ÔÂ5ÈÕ, at 20:34, Horace Heaven notifications@github.com wrote:

I'm seeing this error when running the scripts now ==> NameError: global name 'appium' is not defined

¡ª
Reply to this email directly or view it on GitHub.

@horaceheaven
Copy link
Author

It doesn't seem to be a sauce labs issue, seems like an issue with the new variable that was introduced in the pull you just made - appium-version.

@jollychang
Copy link
Collaborator

robotframework-appiumlibrary is for appium/ web driver, it 'a not for sauce labs.
You can debug and open a pull request for this.

On 2014Äê12ÔÂ5ÈÕ, at 21:42, Horace Heaven notifications@github.com wrote:

It doesn't seem to be a sauce labs issue, seems like an issue with the new variable that was introduced appium-version.

¡ª
Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants