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

TIMOB-9014: BlackBerry: Add BlackBerry to drillbit test harness app #48

Merged
merged 2 commits into from May 14, 2012

Conversation

dlifshitz-maca
Copy link

Reviewers: JP, David C

[Issues Fixed]
TIMOB-9014: BlackBerry: Add BlackBerry to drillbit test harness app

[Changed]
tiapp_harness.xml

  • added blackberry xmlns

blackberry.js

  • function installTestHarness
    • added suite parameter
    • call launchTestHarness
  • function launchTestHarness
    • added suite parameter
    • build, deploy, and run the test_harness app
  • function runTestHarness
    • pass 'blackberry' to handleTestError
    • set the status to Running
    • pass the suite parameter

drillbitmodule.js

  • function initPlatforms
    • fix getting the env vars
  • function handleTestError
    • added parameter platform and use 'android' as the default for backwards compatability

blackberryndk.py, builder.py

  • use return code

[Tests]
Test 1: Run drillbit

  1. Build tibb
  2. change simulator IP in builder.py
  3. Run scons to build the mobile sdk
  4. Run the following command:
    drillbit\drillbit.py --platforms=blackberry
  5. Verify the tests are shown
  6. Click "run tests"
  7. Verify the test_harness app is build and deployed
    Note: the BlackBerry tests will not complete because communication with the simulator is not implemented

[Issues Fixed]
TIMOB-9014: BlackBerry: Add BlackBerry to drillbit test harness app

[Changed]
tiapp_harness.xml
- added blackberry xmlns

blackberry.js
- function installTestHarness
  - added suite parameter
  - call launchTestHarness
- function launchTestHarness
  - added suite parameter
  - build, deploy, and run the test_harness app
- function runTestHarness
  - pass 'blackberry' to handleTestError
  - set the status to Running
  - pass the suite parameter

drillbitmodule.js
- function initPlatforms
  - fix getting the env vars
- function handleTestError
  - added parameter platform and use 'android' as the default for backwards compatability

blackberryndk.py, builder.py
- use return code

[Tests]
Test 1: Run drillbit
1) Build tibb
2) change simulator IP in builder.py
3) Run scons to build the mobile sdk
4) Run the following command:
drillbit\drillbit.py --platforms=blackberry
5) Verify the tests are shown
6) Click "run tests"
7) Verify the test_harness app is build and deployed
Note: the BlackBerry tests will not complete because communication with the simulator is not implemented
if (platform === undefined) {
platform = 'android';
}
this.frontendDo('test_platform_status', suite.name, 'Error', platform);
this.frontendDo('test_status', suite.name, 'Error')
this.testDuration = (new Date().getTime() - this.testsStarted)/1000;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: V8 doesn't implement basic JavaScript objects such as "Date". We're going to need implement a bunch of JS functions and objects.

@dcampbell-macadamian
Copy link

Reviewed

@dcampbell-macadamian
Copy link

Approved

@dlifshitz-maca
Copy link
Author

Updated patch.

dlifshitz-maca added a commit that referenced this pull request May 14, 2012
TIMOB-9014: BlackBerry: Add BlackBerry to drillbit test harness app

[Issues Fixed]
TIMOB-9014: BlackBerry: Add BlackBerry to drillbit test harness app

[Changed]
tiapp_harness.xml
- added blackberry xmlns

blackberry.js
- function installTestHarness
  - added suite parameter
  - call launchTestHarness
- function launchTestHarness
  - added suite parameter
  - build, deploy, and run the test_harness app
- function runTestHarness
  - pass 'blackberry' to handleTestError
  - set the status to Running
  - pass the suite parameter

drillbitmodule.js
- function initPlatforms
  - fix getting the env vars
- function handleTestError
  - added parameter platform and use 'android' as the default for backwards compatability

blackberryndk.py, builder.py
- use return code

[Tests]
Test 1: Run drillbit
1) Build tibb
2) change simulator IP in builder.py
3) Run scons to build the mobile sdk
4) Run the following command:
drillbit\drillbit.py --platforms=blackberry
5) Verify the tests are shown
6) Click "run tests"
7) Verify the test_harness app is build and deployed
Note: the BlackBerry tests will not complete because communication with the simulator is not implemented
@dlifshitz-maca dlifshitz-maca merged commit bfe52af into Macadamian:blackberry May 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants