Skip to content

Instantly share code, notes, and snippets.

@ademcan
Created May 1, 2019 06:46
Show Gist options
  • Save ademcan/daf8f48b21104305fb73a44d5af20305 to your computer and use it in GitHub Desktop.
Save ademcan/daf8f48b21104305fb73a44d5af20305 to your computer and use it in GitHub Desktop.
> RNMainchainDemo@0.0.1 test /Users/abilican/Documents/projects/perso/elastos/react-native-elastos-wallet-core-demo
> wdio config/wdio.ios.app.conf.js
2019-05-01T06:46:05.207Z DEBUG @wdio/utils:initialiseServices: initialise wdio service "appium"
2019-05-01T06:46:05.224Z INFO @wdio/cli:Launcher: Run onPrepare hook
2019-05-01T06:46:05.227Z DEBUG @wdio/appium-service: Will spawn Appium process: /Users/abilican/Documents/projects/perso/elastos/react-native-elastos-wallet-core-demo/node_modules/appium/build/lib/main.js
2019-05-01T06:46:06.002Z DEBUG @wdio/appium-service: Appium started with ID: 53905
2019-05-01T06:46:06.004Z INFO @wdio/local-runner: Start worker 0-0 with arg: config/wdio.ios.app.conf.js
RUNNING 0-0 in ./ios/RNMainchainDemoArchive/RNMainchainDemo.ipa - /test/specs/native.js
Stdout:
[0-0] 2019-05-01T06:46:06.218Z INFO @wdio/local-runner: Run worker command: run
[0-0] 2019-05-01T06:46:06.222Z DEBUG @wdio/utils:initialiseServices: initialise wdio service "appium"
RUNNING 0-0 in ./ios/RNMainchainDemoArchive/RNMainchainDemo.ipa - /test/specs/native.js
Stdout:
[0-0] 2019-05-01T06:46:06.218Z INFO @wdio/local-runner: Run worker command: run
[0-0] 2019-05-01T06:46:06.222Z DEBUG @wdio/utils:initialiseServices: initialise wdio service "appium"
[0-0] 2019-05-01T06:46:06.269Z DEBUG @wdio/local-runner:utils: init remote session
[0-0] 2019-05-01T06:46:06.285Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session
[0-0] 2019-05-01T06:46:06.285Z INFO webdriver: DATA { capabilities:
Stdout:
[0-0] 2019-05-01T06:46:06.218Z INFO @wdio/local-runner: Run worker command: run
[0-0] 2019-05-01T06:46:06.222Z DEBUG @wdio/utils:initialiseServices: initialise wdio service "appium"
[0-0] 2019-05-01T06:46:06.269Z DEBUG @wdio/local-runner:utils: init remote session
[0-0] 2019-05-01T06:46:06.285Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session
[0-0] 2019-05-01T06:46:06.285Z INFO webdriver: DATA { capabilities:
{ alwaysMatch:
{ automationName: 'XCUITest',
platformName: 'iOS',
platformVersion: '12.1',
deviceName: 'iPhone XR',
app: './ios/RNMainchainDemoArchive/RNMainchainDemo.ipa',
noReset: true,
newCommandTimeout: 50 },
firstMatch: [ {} ] },
desiredCapabilities:
{ automationName: 'XCUITest',
platformName: 'iOS',
platformVersion: '12.1',
deviceName: 'iPhone XR',
app: './ios/RNMainchainDemoArchive/RNMainchainDemo.ipa',
noReset: true,
newCommandTimeout: 50 } }
[0-0] 2019-05-01T06:46:11.470Z INFO webdriver: COMMAND findElement("accessibility id", "btn:testBridgeButton")
[0-0] 2019-05-01T06:46:11.471Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/c437e096-ff86-4695-9
cef-4bc111cf1c25/element
[0-0] 2019-05-01T06:46:11.471Z INFO webdriver: DATA { using: 'accessibility id', value: 'btn:testBridgeButton'
}
[0-0] 2019-05-01T06:46:11.568Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '26000000-0000-0
000-ABD2-000000000000',
ELEMENT: '26000000-0000-0000-ABD2-000000000000' }
[0-0] 2019-05-01T06:46:11.585Z INFO webdriver: COMMAND elementClick("26000000-0000-0000-ABD2-000000000000")
[0-0] 2019-05-01T06:46:11.585Z INFO webdriver: [POST]
http://127.0.0.1:4723/wd/hub/session/c437e096-ff86-4695-9cef-4bc111cf1c25/element/26000000-0000-0000-ABD2-00000
0000000/click
[0-0] 2019-05-01T06:46:11.926Z INFO webdriver: RESULT
[0-0] 2019-05-01T06:46:11.926Z INFO webdriver: COMMAND findElement("accessibility id", "txt:testBridgeText")
[0-0] 2019-05-01T06:46:11.927Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/c437e096-ff86-4695-9
cef-4bc111cf1c25/element
[0-0] 2019-05-01T06:46:11.927Z INFO webdriver: DATA { using: 'accessibility id', value: 'txt:testBridgeText' }
[0-0] 2019-05-01T06:46:12.049Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '27000000-0000-0
000-ABD2-000000000000',
ELEMENT: '27000000-0000-0000-ABD2-000000000000' }
[0-0] 2019-05-01T06:46:12.054Z INFO webdriver: COMMAND getElementText("27000000-0000-0000-ABD2-000000000000")
[0-0] 2019-05-01T06:46:12.055Z INFO webdriver: [GET]
http://127.0.0.1:4723/wd/hub/session/c437e096-ff86-4695-9cef-4bc111cf1c25/element/27000000-0000-0000-ABD2-00000
0000000/text
[0-0] 2019-05-01T06:46:12.117Z INFO webdriver: RESULT test
[0-0] 2019-05-01T06:46:12.122Z INFO webdriver: COMMAND deleteSession()
[0-0] 2019-05-01T06:46:12.122Z INFO webdriver: [DELETE] http://127.0.0.1:4723/wd/hub/session/c437e096-ff86-4695
-9cef-4bc111cf1c25
"spec" Reporter:
------------------------------------------------------------------
[iPhone XR iOS 12.1 #0-0] Spec: /Users/abilican/Documents/projects/perso/elastos/react-native-elastos-wallet-co
re-demo/test/specs/native.js
[iPhone XR iOS 12.1 #0-0] Running: iPhone XR on iOS 12.1 executing ./ios/RNMainchainDemoArchive/RNMainchainDemo
.ipa
[iPhone XR iOS 12.1 #0-0]
[iPhone XR iOS 12.1 #0-0] Click Test button
[iPhone XR iOS 12.1 #0-0] ✓ calls the test bridge
[iPhone XR iOS 12.1 #0-0]
[iPhone XR iOS 12.1 #0-0] 1 passing (2.1s)
Test Suites: 1 passed, 1 total (100% completed)
Time: 🕒 8.09s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment