Permalink
Fetching contributors…
Cannot retrieve contributors at this time
81 lines (67 sloc) 2.63 KB

Mobile Spec Suite

This project is a set of automated & manual tests that test Cordova core functionality.

To set up the project, use cordova-mobile-spec/createmobilespec/createmobilespec.js. See the README.md in that directory.

Requirements

Repositories required:

  • cordova-cli (Install pre-requisites by running npm install inside of cordova-cli).
  • cordova-js
  • All plugins.
  • Platforms to test (e.g., cordova-android, cordova-ios, cordova-blackberry, cordova-wp8, or cordova-windows).
  • cordova-mobile-spec (Install pre-requisites by running npm install inside of createmobilespec).
  • All repositories must be checked out as peers to each other.

Performance

For reference purposes, the document AndroidBridgePerformance_300.pdf in this directory outlines the Android bridge performance using cordova-mobile-spec and the manual bridge test. The tests were performed with Cordova 3.0.0.

Running a Local File-Transfer Server

The cordova-vm file-transfer server could be offline for the cordova-plugin-file-transfer tests.

The server to run is at: https://github.com/apache/cordova-labs/tree/cordova-filetransfer

And you would override this variable for this test plugin: https://github.com/apache/cordova-plugin-file-transfer/blob/9b322dec6790f6d273b8f707bc07976d778c4cf6/tests/plugin.xml#L33

## in your mobilespec test project, run...
cordova plugin rm cordova-plugin-file-transfer-tests
cordova plugin add path/to/cordova-plugin-file-transfer/tests --variable FILETRANSFER_SERVER_ADDRESS="http://yourlocal-IPAddressHere:5000"

Run the server:

git clone https://github.com/apache/cordova-labs.git
cd cordova-labs
git checkout cordova-filetransfer
node server.js

Get your local ip by running:

ifconfig