tvarchive / optimusTemplate

This is a cucumber jvm implementation template using the optimus mobile automation framework. If you like it, star it, help spread the word.

Home Page:http://docs.testvagrant.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: iOS - Need more details on how we can run an application which is already installed

asitishere opened this issue · comments

commented

First of all thanks a lot for developing such a nice project. It makes the life real easy to test mobile application.

I have few queries, i tried searching all documents but did not find enough information.

1: If I want to run already installed application , how can i do that ? As the framework need .apk or app to be present in /app folder ? Is there any way i can override the settings ?

e.g In one of my iPhone the application is already installed i want to run it without reinstalling .

Like in Appium capability we can

    capabilities.setCapability("noReset", true);
    capabilities.setCapability("fullReset", false);
    capabilities.setCapability("bundleId","com.XYZ.dev.abc");

This will only open the app in the device rather installation.

Thanks a lot for your help and support.

@asitishere you can pass any number of capabilities through your test feed. For the above capabilities you can modify your testfeed as below

  "executionDetails": {
    "appium_js_path": "/usr/local/bin/appium",
    "appium_node_path": "/usr/local/bin/node"
  },
  "testFeed":[
    {
      "belongsTo":"user",
      "runsOn": "any",
      "appDir": "app",
      "nativeApp":true,
      "optimusDesiredCapabilities": {
        "appiumServerCapabilities": {
          "app": "HelloOptimus.app",
          "platformName": "Ios"
        },
        "iosOnlyCapabilities": {
          "bundleId": "com.XYZ.dev.abc",
          "noReset":true,
          "fullReset":false
        }
      }
    }
  ]
}

Any capability can be passed through your respective testfeed.
commented

Thanks Krishna, will check and let you know

commented

Hi Krishan .....

if i will replace app with .ipa will that work ???

"executionDetails": {
"appium_js_path": "/usr/local/bin/appium",
"appium_node_path": "/usr/local/bin/node"
},
"testFeed":[
{
"belongsTo":"user",
"runsOn": "any",
"appDir": "app",
"nativeApp":true,
"optimusDesiredCapabilities": {
"appiumServerCapabilities": {
"app": "HelloOptimus.ipa",
"platformName": "Ios"
},
"iosOnlyCapabilities": {
"bundleId": "com.XYZ.dev.abc",
"noReset":true,
"fullReset":false
}
}
}
]
}

commented

thanks...worked like a champ.