Skip to content

Instantly share code, notes, and snippets.

task testOnPlantation(dependsOn: [ 'assembleDebug', 'assembleAndroidTest', 'performTesting']) {
performTesting {
def shouldLogToWatson = false;// Boolean.parseBoolean((String) System.env.shouldLogToWatson)
def buildType = (String) System.env.buildType
def buildBranch = (String) System.env.buildBranch
def buildVersion = android.defaultConfig.versionName
serverAddress = 'http://172.18.89.85:10800'
task testOnPlantation(dependsOn: ['pullInstrumentationApks', 'assembleDebug', 'assembleAndroidTest', 'performTesting']) {
performTesting.mustRunAfter pullInstrumentationApks
performTesting {
def startTime = System.currentTimeMillis();
def shouldLogToWatson = Boolean.parseBoolean((String) System.env.shouldLogToWatson)
def buildType = (String) System.env.buildType
def buildBranch = (String) System.env.buildBranch
var config = require('config');
var log = require('libs/log')(module);
var WebSocketServer = require('ws').Server;
/* Запус websocket-сервера */
var wsServer = new WebSocketServer({
host: config.get('ipAddress'),
port: config.get('wsServerPort')
});