Skip to content

Commit

Permalink
update the other file's app path
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Oct 29, 2017
1 parent 2bd215a commit 228305d
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 8 deletions.
11 changes: 11 additions & 0 deletions sample-code/apps/TestApp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Repository
- https://github.com/appium/ios-test-app

## Copy from Simulator
```
$ cp path/to/ios-test-app/build path/to/sample-code/apps/TestApp/build
```

- `path/to` is an arbitrary path.
- `ios-test-app/build` is the result of `npm install` in `ios-test-app`
- `sample-code/apps/TestApp/build` is this direstory.
2 changes: 1 addition & 1 deletion sample-code/examples/node/helpers/apps.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if (process.env.DEV) {
exports.iosTestApp = "sample-code/apps/TestApp/build/release-iphonesimulator/TestApp.app";
exports.iosTestApp = "sample-code/apps/TestApp/build/release-iphonesimulator/TestApp-iphonesimulator.app";
exports.iosWebviewApp = "sample-code/apps/WebViewApp/build/release-iphonesimulator/WebViewApp.app";
exports.iosUICatalogApp = "sample-code/apps/UICatalog/build/release-iphonesimulator/UICatalog.app";
exports.androidApiDemos = "sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk";
Expand Down
2 changes: 1 addition & 1 deletion sample-code/examples/perl/ios_simple.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Cwd qw/getcwd abs_path/;
use Selenium::Remote::Driver 0.20;

my $app = getcwd() . '/../../apps/TestApp/build/release-iphonesimulator/TestApp.app';
my $app = getcwd() . '/../../apps/TestApp/build/release-iphonesimulator/TestApp-iphonesimulator.app';
my $caps = {
app => abs_path($app),
browserName => "",
Expand Down
2 changes: 1 addition & 1 deletion sample-code/examples/php/SimpleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// vendor/bin/phpunit SimpleTest.php

require_once "vendor/autoload.php";
define("APP_PATH", realpath(dirname(__FILE__).'/../../apps/TestApp/build/release-iphonesimulator/TestApp.app'));
define("APP_PATH", realpath(dirname(__FILE__).'/../../apps/TestApp/build/release-iphonesimulator/TestApp-iphonesimulator.app'));
if (!APP_PATH) {
die("App did not exist!");
}
Expand Down
2 changes: 1 addition & 1 deletion sample-code/examples/python/ios_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SimpleIOSTests(unittest.TestCase):

def setUp(self):
# set up appium
app = os.path.abspath('../../apps/TestApp/build/release-iphonesimulator/TestApp.app')
app = os.path.abspath('../../apps/TestApp/build/release-iphonesimulator/TestApp-iphonesimulator.app')
self.driver = webdriver.Remote(
command_executor='http://127.0.0.1:4723/wd/hub',
desired_capabilities={
Expand Down
2 changes: 1 addition & 1 deletion sample-code/examples/ruby/arc_ios_calc/appium.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
platformName = "ios"
deviceName = "iPhone 6"
platformVersion = "8.1"
app = "../../../apps/TestApp/build/release-iphonesimulator/TestApp.app"
app = "../../../apps/TestApp/build/release-iphonesimulator/TestApp-iphonesimulator.app"
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
platformName = "ios"
deviceName = "iPhone 6"
platformVersion = "10.2"
app = "../../../apps/TestApp/build/release-iphonesimulator/TestApp.app"
app = "../../../apps/TestApp/build/release-iphonesimulator/TestApp-iphonesimulator.app"
automationName = 'XCUITest'

[appium_lib]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
platformName = "ios"
deviceName = "iPad Air"
platformVersion = "10.2"
app = "../../../apps/TestApp/build/release-iphonesimulator/TestApp.app"
app = "../../../apps/TestApp/build/release-iphonesimulator/TestApp-iphonesimulator.app"
automationName = 'XCUITest'

[appium_lib]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
platformName = "ios"
deviceName = "iPhone 6"
platformVersion = "10.2"
app = "../../../apps/TestApp/build/release-iphonesimulator/TestApp.app"
app = "../../../apps/TestApp/build/release-iphonesimulator/TestApp-iphonesimulator.app"
automationName = 'XCUITest'

[appium_lib]
Expand Down

0 comments on commit 228305d

Please sign in to comment.