mirror of
https://github.com/appium/appium.git
synced 2026-01-14 14:19:56 -06:00
24 lines
764 B
JavaScript
24 lines
764 B
JavaScript
const webdriverio = require("webdriverio");
|
|
const androidOptions = require("../../helpers/caps").androidOptions;
|
|
const app = require("../../helpers/apps").androidApiDemos;
|
|
const assert = require("chai").assert;
|
|
|
|
androidOptions.capabilities.app = app;
|
|
|
|
describe("Create Android session", function() {
|
|
let client;
|
|
|
|
before(async() => {
|
|
client = await webdriverio.remote(androidOptions);
|
|
});
|
|
|
|
it("should create and destroy a session", async function() {
|
|
const res = await client.status();
|
|
assert.isObject(res.build);
|
|
const current_package = await client.getCurrentPackage();
|
|
assert.equal(current_package, "io.appium.android.apis");
|
|
const delete_session = await client.deleteSession();
|
|
assert.isNull(delete_session);
|
|
});
|
|
});
|