Forum Discussion

pankhuri's avatar
pankhuri
Occasional Contributor
5 years ago
Solved

Find usage of a test within Keyword Tests

Hi,   Is there a way to find usage of a test within all your keyword tests? Below is the issue I am facing-   I have a parameterized keyword test (KT1) which I am using in another keyword test (K...
  • Ferny's avatar
    Ferny
    2 years ago

    I've managed to fix my issue, after testing out various fixes all day.

    There was some version of appium on the image, however, it would not work with the default caps that bitbar starts it with.

    Using npm list -g I also saw that there was a version of appium-xcuitest-driver installed.

    I Added the following lines to my bash script in the appropriate places:

    sudo npm uninstall -g appium-xcuitest-driver
    sudo npm uninstall -g appium
    sudo npm install -g -force appium@2.0.1
    sudo appium driver install xcuitest
    
    ...
    
    #Install coreutils for gtimeout command
    brew install coreutils
    
    sudo appium --base-path /wd/hub --port 4723 --log-timestamp --log-no-colors --default-capabilities '{"appium:xcodeConfigFile": "/opt/testdroid/appium.xcconfig", "appium:udid": "'"$UDID"'", "appium:webDriverAgentUrl": "http://localhost:8102", "appium:webkitDebugProxyPort": 27753, "appium:showXcodeLog": true}' & > appium.log
    
    #Wait up to two mins to connect to appium server
    gtimeout 120s sh -c 'until nc -z $0 $1; do sleep 1; done' localhost 4723

    I uninstalled the xcuitest driver. I left in the npm uninstall -g appium command, but it doesn't appear to do anything, so I added -force to the npm install -g -force appium@2.0.1 command (I use that specific version on my local). I can now connect to the ios device.

    If any staff see's this, is there any place I can view changelogs and/or update schedules for the default images you guys provide? It feels like every few months I have to update my run-tests.sh file to get it to work again whenever the docker image is updated.