How to use buildInfo method in Webdriverio

Best JavaScript code snippet using webdriverio-monorepo

cordova_plugins.js

Source:cordova_plugins.js Github

copy

Full Screen

1cordova.define('cordova/plugin_list', function(require, exports, module) {2module.exports = [3 {4 "file": "plugins/cordova-plugin-statusbar/www/statusbar.js",5 "id": "cordova-plugin-statusbar.statusbar",6 "pluginId": "cordova-plugin-statusbar",7 "clobbers": [8 "window.StatusBar"9 ]10 },11 {12 "file": "plugins/cordova-plugin-statusbar/src/browser/statusbar.js",13 "id": "cordova-plugin-statusbar.statusbar.Browser",14 "pluginId": "cordova-plugin-statusbar",15 "merges": [16 "window.StatusBar"17 ]18 },19 {20 "file": "plugins/phonegap-plugin-push/www/push.js",21 "id": "phonegap-plugin-push.PushNotification",22 "pluginId": "phonegap-plugin-push",23 "clobbers": [24 "PushNotification"25 ]26 },27 {28 "file": "plugins/phonegap-plugin-push/www/browser/push.js",29 "id": "phonegap-plugin-push.BrowserPush",30 "pluginId": "phonegap-plugin-push",31 "clobbers": [32 "PushNotification"33 ]34 },35 {36 "file": "plugins/cordova-plugin-dialogs/www/notification.js",37 "id": "cordova-plugin-dialogs.notification",38 "pluginId": "cordova-plugin-dialogs",39 "merges": [40 "navigator.notification"41 ]42 },43 {44 "file": "plugins/cordova-plugin-dialogs/www/browser/notification.js",45 "id": "cordova-plugin-dialogs.notification_browser",46 "pluginId": "cordova-plugin-dialogs",47 "merges": [48 "navigator.notification"49 ]50 },51 {52 "file": "plugins/cordova-plugin-device/www/device.js",53 "id": "cordova-plugin-device.device",54 "pluginId": "cordova-plugin-device",55 "clobbers": [56 "device"57 ]58 },59 {60 "file": "plugins/cordova-plugin-device/src/browser/DeviceProxy.js",61 "id": "cordova-plugin-device.DeviceProxy",62 "pluginId": "cordova-plugin-device",63 "runs": true64 },65 {66 "file": "plugins/cordova-plugin-device/www/device.js",67 "id": "cordova-plugin-device.device",68 "pluginId": "cordova-plugin-device",69 "clobbers": [70 "device"71 ]72 },73 {74 "file": "plugins/cordova-plugin-device/src/browser/DeviceProxy.js",75 "id": "cordova-plugin-device.DeviceProxy",76 "pluginId": "cordova-plugin-device",77 "runs": true78 },79 {80 "file": "plugins/cordova-plugin-device/www/device.js",81 "id": "cordova-plugin-device.device",82 "pluginId": "cordova-plugin-device",83 "clobbers": [84 "device"85 ]86 },87 {88 "file": "plugins/cordova-plugin-device/src/browser/DeviceProxy.js",89 "id": "cordova-plugin-device.DeviceProxy",90 "pluginId": "cordova-plugin-device",91 "runs": true92 },93 {94 "file": "plugins/cordova-plugin-device/www/device.js",95 "id": "cordova-plugin-device.device",96 "pluginId": "cordova-plugin-device",97 "clobbers": [98 "device"99 ]100 },101 {102 "file": "plugins/cordova-plugin-device/src/browser/DeviceProxy.js",103 "id": "cordova-plugin-device.DeviceProxy",104 "pluginId": "cordova-plugin-device",105 "runs": true106 },107 {108 "file": "plugins/cordova-plugin-device/www/device.js",109 "id": "cordova-plugin-device.device",110 "pluginId": "cordova-plugin-device",111 "clobbers": [112 "device"113 ]114 },115 {116 "file": "plugins/cordova-plugin-device/src/browser/DeviceProxy.js",117 "id": "cordova-plugin-device.DeviceProxy",118 "pluginId": "cordova-plugin-device",119 "runs": true120 },121 {122 "file": "plugins/cordova-plugin-device/www/device.js",123 "id": "cordova-plugin-device.device",124 "pluginId": "cordova-plugin-device",125 "clobbers": [126 "device"127 ]128 },129 {130 "file": "plugins/cordova-plugin-device/src/browser/DeviceProxy.js",131 "id": "cordova-plugin-device.DeviceProxy",132 "pluginId": "cordova-plugin-device",133 "runs": true134 },135 {136 "file": "plugins/cordova-plugin-device/www/device.js",137 "id": "cordova-plugin-device.device",138 "pluginId": "cordova-plugin-device",139 "clobbers": [140 "device"141 ]142 },143 {144 "file": "plugins/cordova-plugin-device/src/browser/DeviceProxy.js",145 "id": "cordova-plugin-device.DeviceProxy",146 "pluginId": "cordova-plugin-device",147 "runs": true148 },149 {150 "file": "plugins/cordova-plugin-device/www/device.js",151 "id": "cordova-plugin-device.device",152 "pluginId": "cordova-plugin-device",153 "clobbers": [154 "device"155 ]156 },157 {158 "file": "plugins/cordova-plugin-device/src/browser/DeviceProxy.js",159 "id": "cordova-plugin-device.DeviceProxy",160 "pluginId": "cordova-plugin-device",161 "runs": true162 },163 {164 "file": "plugins/cordova-plugin-buildinfo/www/buildinfo.js",165 "id": "cordova-plugin-buildinfo.BuildInfo",166 "pluginId": "cordova-plugin-buildinfo",167 "clobbers": [168 "BuildInfo"169 ]170 },171 {172 "file": "plugins/cordova-plugin-buildinfo/www/buildinfo.js",173 "id": "cordova-plugin-buildinfo.BuildInfo",174 "pluginId": "cordova-plugin-buildinfo",175 "clobbers": [176 "BuildInfo"177 ]178 },179 {180 "file": "plugins/cordova-plugin-buildinfo/www/buildinfo.js",181 "id": "cordova-plugin-buildinfo.BuildInfo",182 "pluginId": "cordova-plugin-buildinfo",183 "clobbers": [184 "BuildInfo"185 ]186 },187 {188 "file": "plugins/cordova-plugin-buildinfo/www/buildinfo.js",189 "id": "cordova-plugin-buildinfo.BuildInfo",190 "pluginId": "cordova-plugin-buildinfo",191 "clobbers": [192 "BuildInfo"193 ]194 },195 {196 "file": "plugins/cordova-plugin-buildinfo/www/buildinfo.js",197 "id": "cordova-plugin-buildinfo.BuildInfo",198 "pluginId": "cordova-plugin-buildinfo",199 "clobbers": [200 "BuildInfo"201 ]202 },203 {204 "file": "plugins/cordova-plugin-buildinfo/www/buildinfo.js",205 "id": "cordova-plugin-buildinfo.BuildInfo",206 "pluginId": "cordova-plugin-buildinfo",207 "clobbers": [208 "BuildInfo"209 ]210 },211 {212 "file": "plugins/cordova-plugin-buildinfo/www/buildinfo.js",213 "id": "cordova-plugin-buildinfo.BuildInfo",214 "pluginId": "cordova-plugin-buildinfo",215 "clobbers": [216 "BuildInfo"217 ]218 },219 {220 "file": "plugins/cordova-plugin-buildinfo/www/buildinfo.js",221 "id": "cordova-plugin-buildinfo.BuildInfo",222 "pluginId": "cordova-plugin-buildinfo",223 "clobbers": [224 "BuildInfo"225 ]226 },227 {228 "file": "plugins/cordova-plugin-buildinfo/www/buildinfo.js",229 "id": "cordova-plugin-buildinfo.BuildInfo",230 "pluginId": "cordova-plugin-buildinfo",231 "clobbers": [232 "BuildInfo"233 ]234 },235 {236 "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",237 "id": "cordova-plugin-splashscreen.SplashScreen",238 "pluginId": "cordova-plugin-splashscreen",239 "clobbers": [240 "navigator.splashscreen"241 ]242 },243 {244 "file": "plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js",245 "id": "cordova-plugin-splashscreen.SplashScreenProxy",246 "pluginId": "cordova-plugin-splashscreen",247 "runs": true248 },249 {250 "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",251 "id": "cordova-plugin-splashscreen.SplashScreen",252 "pluginId": "cordova-plugin-splashscreen",253 "clobbers": [254 "navigator.splashscreen"255 ]256 },257 {258 "file": "plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js",259 "id": "cordova-plugin-splashscreen.SplashScreenProxy",260 "pluginId": "cordova-plugin-splashscreen",261 "runs": true262 },263 {264 "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",265 "id": "cordova-plugin-splashscreen.SplashScreen",266 "pluginId": "cordova-plugin-splashscreen",267 "clobbers": [268 "navigator.splashscreen"269 ]270 },271 {272 "file": "plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js",273 "id": "cordova-plugin-splashscreen.SplashScreenProxy",274 "pluginId": "cordova-plugin-splashscreen",275 "runs": true276 },277 {278 "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",279 "id": "cordova-plugin-splashscreen.SplashScreen",280 "pluginId": "cordova-plugin-splashscreen",281 "clobbers": [282 "navigator.splashscreen"283 ]284 },285 {286 "file": "plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js",287 "id": "cordova-plugin-splashscreen.SplashScreenProxy",288 "pluginId": "cordova-plugin-splashscreen",289 "runs": true290 },291 {292 "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",293 "id": "cordova-plugin-splashscreen.SplashScreen",294 "pluginId": "cordova-plugin-splashscreen",295 "clobbers": [296 "navigator.splashscreen"297 ]298 },299 {300 "file": "plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js",301 "id": "cordova-plugin-splashscreen.SplashScreenProxy",302 "pluginId": "cordova-plugin-splashscreen",303 "runs": true304 },305 {306 "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",307 "id": "cordova-plugin-splashscreen.SplashScreen",308 "pluginId": "cordova-plugin-splashscreen",309 "clobbers": [310 "navigator.splashscreen"311 ]312 },313 {314 "file": "plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js",315 "id": "cordova-plugin-splashscreen.SplashScreenProxy",316 "pluginId": "cordova-plugin-splashscreen",317 "runs": true318 },319 {320 "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",321 "id": "cordova-plugin-splashscreen.SplashScreen",322 "pluginId": "cordova-plugin-splashscreen",323 "clobbers": [324 "navigator.splashscreen"325 ]326 },327 {328 "file": "plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js",329 "id": "cordova-plugin-splashscreen.SplashScreenProxy",330 "pluginId": "cordova-plugin-splashscreen",331 "runs": true332 },333 {334 "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",335 "id": "cordova-plugin-splashscreen.SplashScreen",336 "pluginId": "cordova-plugin-splashscreen",337 "clobbers": [338 "navigator.splashscreen"339 ]340 },341 {342 "file": "plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js",343 "id": "cordova-plugin-splashscreen.SplashScreenProxy",344 "pluginId": "cordova-plugin-splashscreen",345 "runs": true346 },347 {348 "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",349 "id": "cordova-plugin-splashscreen.SplashScreen",350 "pluginId": "cordova-plugin-splashscreen",351 "clobbers": [352 "navigator.splashscreen"353 ]354 },355 {356 "file": "plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js",357 "id": "cordova-plugin-splashscreen.SplashScreenProxy",358 "pluginId": "cordova-plugin-splashscreen",359 "runs": true360 },361 {362 "file": "plugins/cordova-plugin-camera/www/CameraConstants.js",363 "id": "cordova-plugin-camera.Camera",364 "pluginId": "cordova-plugin-camera",365 "clobbers": [366 "Camera"367 ]368 },369 {370 "file": "plugins/cordova-plugin-camera/www/CameraPopoverOptions.js",371 "id": "cordova-plugin-camera.CameraPopoverOptions",372 "pluginId": "cordova-plugin-camera",373 "clobbers": [374 "CameraPopoverOptions"375 ]376 },377 {378 "file": "plugins/cordova-plugin-camera/www/Camera.js",379 "id": "cordova-plugin-camera.camera",380 "pluginId": "cordova-plugin-camera",381 "clobbers": [382 "navigator.camera"383 ]384 },385 {386 "file": "plugins/cordova-plugin-camera/src/browser/CameraProxy.js",387 "id": "cordova-plugin-camera.CameraProxy",388 "pluginId": "cordova-plugin-camera",389 "runs": true390 },391 {392 "file": "plugins/cordova-plugin-camera/www/CameraConstants.js",393 "id": "cordova-plugin-camera.Camera",394 "pluginId": "cordova-plugin-camera",395 "clobbers": [396 "Camera"397 ]398 },399 {400 "file": "plugins/cordova-plugin-camera/www/CameraPopoverOptions.js",401 "id": "cordova-plugin-camera.CameraPopoverOptions",402 "pluginId": "cordova-plugin-camera",403 "clobbers": [404 "CameraPopoverOptions"405 ]406 },407 {408 "file": "plugins/cordova-plugin-camera/www/Camera.js",409 "id": "cordova-plugin-camera.camera",410 "pluginId": "cordova-plugin-camera",411 "clobbers": [412 "navigator.camera"413 ]414 },415 {416 "file": "plugins/cordova-plugin-camera/src/browser/CameraProxy.js",417 "id": "cordova-plugin-camera.CameraProxy",418 "pluginId": "cordova-plugin-camera",419 "runs": true420 },421 {422 "file": "plugins/cordova-plugin-camera/www/CameraConstants.js",423 "id": "cordova-plugin-camera.Camera",424 "pluginId": "cordova-plugin-camera",425 "clobbers": [426 "Camera"427 ]428 },429 {430 "file": "plugins/cordova-plugin-camera/www/CameraPopoverOptions.js",431 "id": "cordova-plugin-camera.CameraPopoverOptions",432 "pluginId": "cordova-plugin-camera",433 "clobbers": [434 "CameraPopoverOptions"435 ]436 },437 {438 "file": "plugins/cordova-plugin-camera/www/Camera.js",439 "id": "cordova-plugin-camera.camera",440 "pluginId": "cordova-plugin-camera",441 "clobbers": [442 "navigator.camera"443 ]444 },445 {446 "file": "plugins/cordova-plugin-camera/src/browser/CameraProxy.js",447 "id": "cordova-plugin-camera.CameraProxy",448 "pluginId": "cordova-plugin-camera",449 "runs": true450 },451 {452 "file": "plugins/cordova-plugin-camera/www/CameraConstants.js",453 "id": "cordova-plugin-camera.Camera",454 "pluginId": "cordova-plugin-camera",455 "clobbers": [456 "Camera"457 ]458 },459 {460 "file": "plugins/cordova-plugin-camera/www/CameraPopoverOptions.js",461 "id": "cordova-plugin-camera.CameraPopoverOptions",462 "pluginId": "cordova-plugin-camera",463 "clobbers": [464 "CameraPopoverOptions"465 ]466 },467 {468 "file": "plugins/cordova-plugin-camera/www/Camera.js",469 "id": "cordova-plugin-camera.camera",470 "pluginId": "cordova-plugin-camera",471 "clobbers": [472 "navigator.camera"473 ]474 },475 {476 "file": "plugins/cordova-plugin-camera/src/browser/CameraProxy.js",477 "id": "cordova-plugin-camera.CameraProxy",478 "pluginId": "cordova-plugin-camera",479 "runs": true480 },481 {482 "file": "plugins/cordova-plugin-camera/www/CameraConstants.js",483 "id": "cordova-plugin-camera.Camera",484 "pluginId": "cordova-plugin-camera",485 "clobbers": [486 "Camera"487 ]488 },489 {490 "file": "plugins/cordova-plugin-camera/www/CameraPopoverOptions.js",491 "id": "cordova-plugin-camera.CameraPopoverOptions",492 "pluginId": "cordova-plugin-camera",493 "clobbers": [494 "CameraPopoverOptions"495 ]496 },497 {498 "file": "plugins/cordova-plugin-camera/www/Camera.js",499 "id": "cordova-plugin-camera.camera",500 "pluginId": "cordova-plugin-camera",501 "clobbers": [502 "navigator.camera"503 ]504 },505 {506 "file": "plugins/cordova-plugin-camera/src/browser/CameraProxy.js",507 "id": "cordova-plugin-camera.CameraProxy",508 "pluginId": "cordova-plugin-camera",509 "runs": true510 },511 {512 "file": "plugins/cordova-plugin-camera/www/CameraConstants.js",513 "id": "cordova-plugin-camera.Camera",514 "pluginId": "cordova-plugin-camera",515 "clobbers": [516 "Camera"517 ]518 },519 {520 "file": "plugins/cordova-plugin-camera/www/CameraPopoverOptions.js",521 "id": "cordova-plugin-camera.CameraPopoverOptions",522 "pluginId": "cordova-plugin-camera",523 "clobbers": [524 "CameraPopoverOptions"525 ]526 },527 {528 "file": "plugins/cordova-plugin-camera/www/Camera.js",529 "id": "cordova-plugin-camera.camera",530 "pluginId": "cordova-plugin-camera",531 "clobbers": [532 "navigator.camera"533 ]534 },535 {536 "file": "plugins/cordova-plugin-camera/src/browser/CameraProxy.js",537 "id": "cordova-plugin-camera.CameraProxy",538 "pluginId": "cordova-plugin-camera",539 "runs": true540 },541 {542 "file": "plugins/cordova-plugin-camera/www/CameraConstants.js",543 "id": "cordova-plugin-camera.Camera",544 "pluginId": "cordova-plugin-camera",545 "clobbers": [546 "Camera"547 ]548 },549 {550 "file": "plugins/cordova-plugin-camera/www/CameraPopoverOptions.js",551 "id": "cordova-plugin-camera.CameraPopoverOptions",552 "pluginId": "cordova-plugin-camera",553 "clobbers": [554 "CameraPopoverOptions"555 ]556 },557 {558 "file": "plugins/cordova-plugin-camera/www/Camera.js",559 "id": "cordova-plugin-camera.camera",560 "pluginId": "cordova-plugin-camera",561 "clobbers": [562 "navigator.camera"563 ]564 },565 {566 "file": "plugins/cordova-plugin-camera/src/browser/CameraProxy.js",567 "id": "cordova-plugin-camera.CameraProxy",568 "pluginId": "cordova-plugin-camera",569 "runs": true570 },571 {572 "file": "plugins/cordova-plugin-camera/www/CameraConstants.js",573 "id": "cordova-plugin-camera.Camera",574 "pluginId": "cordova-plugin-camera",575 "clobbers": [576 "Camera"577 ]578 },579 {580 "file": "plugins/cordova-plugin-camera/www/CameraPopoverOptions.js",581 "id": "cordova-plugin-camera.CameraPopoverOptions",582 "pluginId": "cordova-plugin-camera",583 "clobbers": [584 "CameraPopoverOptions"585 ]586 },587 {588 "file": "plugins/cordova-plugin-camera/www/Camera.js",589 "id": "cordova-plugin-camera.camera",590 "pluginId": "cordova-plugin-camera",591 "clobbers": [592 "navigator.camera"593 ]594 },595 {596 "file": "plugins/cordova-plugin-camera/src/browser/CameraProxy.js",597 "id": "cordova-plugin-camera.CameraProxy",598 "pluginId": "cordova-plugin-camera",599 "runs": true600 },601 {602 "file": "plugins/cordova-plugin-camera/www/CameraConstants.js",603 "id": "cordova-plugin-camera.Camera",604 "pluginId": "cordova-plugin-camera",605 "clobbers": [606 "Camera"607 ]608 },609 {610 "file": "plugins/cordova-plugin-camera/www/CameraPopoverOptions.js",611 "id": "cordova-plugin-camera.CameraPopoverOptions",612 "pluginId": "cordova-plugin-camera",613 "clobbers": [614 "CameraPopoverOptions"615 ]616 },617 {618 "file": "plugins/cordova-plugin-camera/www/Camera.js",619 "id": "cordova-plugin-camera.camera",620 "pluginId": "cordova-plugin-camera",621 "clobbers": [622 "navigator.camera"623 ]624 },625 {626 "file": "plugins/cordova-plugin-camera/src/browser/CameraProxy.js",627 "id": "cordova-plugin-camera.CameraProxy",628 "pluginId": "cordova-plugin-camera",629 "runs": true630 }631];632module.exports.metadata = 633// TOP OF METADATA634{635 "cordova-plugin-statusbar": "2.1.3",636 "phonegap-plugin-push": "1.8.4",637 "cordova-plugin-console": "1.0.7",638 "cordova-plugin-dialogs": "1.2.1",639 "cordova-plugin-whitelist": "1.2.2",640 "cordova-plugin-device": "2.0.2",641 "cordova-plugin-buildinfo": "2.0.2",642 "cordova-plugin-splashscreen": "5.0.2",643 "cordova-plugin-camera": "4.0.3",644 "cordova-android-support-gradle-release": "2.0.1"645}646// BOTTOM OF METADATA...

Full Screen

Full Screen

index.js

Source:index.js Github

copy

Full Screen

1// Frameworks vars2var fs = require('fs'),3 async = require('async'),4 runner = require('./lib/runner'),5 helpers = require('./lib/helpers'),6 phantom = require('phantom'),7 pm = require('./lib/packages'),8 exec = require('child_process').exec, 9 workDir = process.cwd();10// Configuration vars11var buildInfo, workFiles;12runner.task('default', 'Run preview server', ['preview'], function(callback) {13 callback(null);14});15runner.task('preview', 'Run preview server', ['watch'], function(callback) {16 pm.runServer(buildInfo.server, function(err, success) {17 var Y = require('yuidocjs');18 if (buildInfo.server.docs) {19 var options, opts;20 options = buildInfo.server.docs;21 options = Y.Project.init(options);22 opts = Y.clone(options);23 Y.log(opts, 'info', 'yuidoc');24 Y.Server.start(options);25 } else {26 callback(null, buildInfo);27 } 28 });29});30runner.task('watch', 'Watch for files changes', ['build'], function(callback) {31 pm.watchForChanges(function(err, success) {32 callback(null);33 });34});35runner.task('dist', 'Build libraries and applications', ['task:configure', 'task:clean', 'vendors', 'apps', 'task:checkPackages', 'task:walk'], function(callback) {36 pm.build(function(err, success) {37 var distInfos = pm.distributions;38 async.forEachSeries(distInfos, function(distInfo, inlineCallback) {39 distInfo.distributeIt(inlineCallback); 40 }, callback);41 });42});43runner.task('build', 'Build libraries and applications', ['task:configure', 'task:clean', 'vendors', 'apps', 'task:checkPackages', 'task:walk'], function(callback) {44 pm.build(function(err, success) {45 console.log(err);46 var distInfos = pm.distributions;47 async.forEachSeries(distInfos, function(distInfo, inlineCallback) {48 distInfo.distributeIt(inlineCallback); 49 }, callback);50 });51});52runner.task('tests', 'Build tests', ['build'], function(callback) {53 callback(null);54});55runner.task('apps', 'Generate applications libraries', function(callback) {56 var apps = buildInfo.apps,57 distributions = apps.distributions,58 packages, distPackages, name, deps = [];59 60 for(var key in buildInfo.vendors.distributions) {61 deps.push(key); 62 }63 for (var dist in distributions) {64 distPackages = [];65 66 packages = distributions[dist];67 packages.forEach(function(pack) {68 name = pack.split('/');69 name = name[name.length - 1];70 distPackages.push(pm.createPackage({71 isApp: true,72 name: name,73 path: [buildInfo.srcApps, pack].join('/'),74 smallPath: pack,75 styles: apps.styles,76 static: apps.static,77 templates: apps.templates,78 scripts: apps.scripts79 }));80 });81 pm.createDistInfo({82 isApp: true,83 name: dist,84 dependencies: deps,85 packages: distPackages,86 output: [buildInfo.apps.output, dist].join('/')87 }); 88 }89 callback(null);90});91runner.task('vendors', 'Generate vendors libraries', function(callback) {92 var vendors = buildInfo.vendors,93 distributions = vendors.distributions,94 packages, distPackages, name, distDependencies = [];95 for (var dist in distributions) { 96 distPackages = [];97 98 packages = distributions[dist]; 99 packages.forEach(function(pack) {100 name = pack.split('/');101 name = name[name.length - 1];102 103 distPackages.push(pm.createPackage({104 isVendor: true,105 name: name,106 path: [buildInfo.srcVendors, pack].join('/'), 107 smallPath: pack,108 styles: vendors.styles,109 static: vendors.static,110 templates: vendors.templates,111 scripts: vendors.scripts112 }));113 });114 pm.createDistInfo({115 isVendor: true,116 name: dist,117 dependencies: distDependencies.length > 0 ? distDependencies.slice(0) : null,118 packages: distPackages,119 output: buildInfo.vendors.output120 });121 122 distDependencies.push(dist);123 }124 125 callback(null);126});127// ================128// = GENERIC TASK =129// ================130runner.task('task:clean', 'Clean all generated directories', function(callback) {131 var pending = 2;132 133 // remove public/apps folder134 exec('rm -rf ' + buildInfo.apps.output, function(err, stdout, stderr) {135 if (err) callback(err);136 if (--pending === 0) callback(null);137 });138 139 exec('rm -rf ' + buildInfo.vendors.output, function(err, stdout, stderr) {140 if (err) callback(err, null);141 if (--pending === 0) callback(null);142 });143 144});145runner.task('task:configure', 'Retrieve configuration parameters', ['task:checkConfig'], function(callback) {146 var self = this, key, devBuildInfo;147 fs.readFile([__dirname, 'ember_runner_config.json'].join('/'), function(err, file) {148 if (err) return callback("Error no ember_runner_config.json file found");149 buildInfo = JSON.parse(file);150 fs.readFile([workDir, 'ember_runner_config.json'].join('/'), function(err, file) {151 if (err) return callback("Error no ember_runner_config.json file found");152 devBuildInfo = JSON.parse(file);153 // merge devBuildInfo keys with buildInfo154 // first apps155 if (devBuildInfo.apps) {156 for(key in devBuildInfo.apps) {157 buildInfo.apps[key] = devBuildInfo.apps[key];158 }159 }160 // then vendors161 if (devBuildInfo.vendors) {162 for(key in devBuildInfo.vendors) {163 buildInfo.vendors[key] = devBuildInfo.vendors[key];164 }165 }166 // server167 if (devBuildInfo.server) {168 for(key in devBuildInfo.server) {169 if (key != 'proxy') buildInfo.server[key] = devBuildInfo.server[key];170 }171 // server's proxy172 if (devBuildInfo.server.proxy) {173 for(key in devBuildInfo.server.proxy) {174 buildInfo.server.proxy[key] = devBuildInfo.server.proxy[key];175 }176 }177 }178 // Generate generics attributes179 buildInfo.srcApps = [workDir, buildInfo.apps.input].join('/');180 buildInfo.srcVendors = [workDir, buildInfo.vendors.input].join('/');181 buildInfo.tmpApps = [workDir, buildInfo.tmpDir, buildInfo.apps.input].join('/');182 buildInfo.tmpVendors = [workDir, buildInfo.tmpDir, buildInfo.vendors.input].join('/');183 buildInfo.tgtApps = [workDir, buildInfo.apps.output].join('/');184 buildInfo.tgtVendors = [workDir, buildInfo.vendors.output].join('/');185 var regexp = new RegExp("^\\."), dir, stats;186 // Generate apps distribution if not found187 if (!buildInfo.apps.distributions) {188 buildInfo.apps.distributions = {};189 fs.readdir(buildInfo.srcApps, function(err, lists) {190 if (err) return callback("There no applications found, nothing to do.\nCreate one with ember-runner -g app <your app>");191 lists.forEach(function(list) {192 // check if the file doesn't start with dot 193 if (!regexp.exec(list)) {194 // check if are also a directory195 dir = [buildInfo.srcApps, list].join('/');196 197 stats = fs.lstatSync(dir);198 // Is it a directory?199 if (stats.isDirectory()) {200 // Yes it is201 buildInfo.apps.distributions[list] = [list];202 }203 }204 });205 callback(null);206 });207 } else {208 callback(null);209 }210 });211 });212});213runner.task('task:walk', 'Check for all files to be used', function(callback) {214 215 async.parallel([216 // Load apps files217 function(callback) {218 helpers.walk(buildInfo.srcApps, function(err, results) {219 if (err) return callback("Error walking files."); 220 callback(null, results);221 });222 },223 // Load vendors files224 function(callback) {225 helpers.walk(buildInfo.srcVendors, function(err, results) {226 if (err) return callback("Error walking files."); 227 callback(null, results);228 });229 }230 ], function(err, results) {231 workFiles = {232 dirs: results[0].dirs.concat(results[1].dirs),233 files: results[0].files.concat(results[1].files)234 };235 callback(null);236 });237 238});239runner.task('task:checkConfig', 'Check if the working directory is a valid ember-runner project', function(callback) {240 fs.stat('ember_runner_config.json', function(err, stat) {241 if (err) return callback("This is not a valid ember-runner project, no ember_runner_config.json found.\nGenerate one with: ember-runner --initialize/-i", true);242 callback(null);243 });244});245 246runner.task('task:checkPackages', 'Retrieve configuration parameters', function(callback) {247 var packages = pm.packages, errors = [], pending;248 249 if (!packages || packages.length === 0) return callback('No packages found (apps and vendors), nothing to do.');250 251 pending = packages.length;252 253 packages.forEach(function(pack) {254 fs.stat(pack.path, function(err) {255 if (err) errors.push('Package: ' + pack.name +' ([' + (pack.isVendor ? 'vendors' : 'apps') +'/]' + pack.smallPath + ') not found, please add it in vendors');256 if (--pending === 0) {257 if (errors.length > 0) return callback(errors.join('\n'));258 callback(null);259 }260 });261 });...

Full Screen

Full Screen

startup_log.js

Source:startup_log.js Github

copy

Full Screen

1/**2 * This test attempts to read from the "local.startup_log" collection and assert that it has an3 * entry matching the server's response from the "getCmdLineOpts" command. The former operation may4 * be routed to a secondary in the replica set, whereas the latter must be routed to the primary.5 *6 * @tags: [7 * assumes_read_preference_unchanged,8 * requires_collstats,9 * requires_capped,10 * ]11 */12load('jstests/aggregation/extras/utils.js');13(function() {14 'use strict';15 // Check that smallArray is entirely contained by largeArray16 // returns false if a member of smallArray is not in largeArray17 function arrayIsSubset(smallArray, largeArray) {18 for (var i = 0; i < smallArray.length; i++) {19 if (!Array.contains(largeArray, smallArray[i])) {20 print("Could not find " + smallArray[i] + " in largeArray");21 return false;22 }23 }24 return true;25 }26 // Test startup_log27 var stats = db.getSisterDB("local").startup_log.stats();28 assert(stats.capped);29 var latestStartUpLog =30 db.getSisterDB("local").startup_log.find().sort({$natural: -1}).limit(1).next();31 var serverStatus = db._adminCommand("serverStatus");32 var cmdLine = db._adminCommand("getCmdLineOpts").parsed;33 // Test that the startup log has the expected keys34 var verbose = false;35 var expectedKeys =36 ["_id", "hostname", "startTime", "startTimeLocal", "cmdLine", "pid", "buildinfo"];37 var keys = Object.keySet(latestStartUpLog);38 assert(arrayEq(expectedKeys, keys, verbose), 'startup_log keys failed');39 // Tests _id implicitly - should be comprised of host-timestamp40 // Setup expected startTime and startTimeLocal from the supplied timestamp41 var _id = latestStartUpLog._id.split('-'); // _id should consist of host-timestamp42 var _idUptime = _id.pop();43 var _idHost = _id.join('-');44 var uptimeSinceEpochRounded = Math.floor(_idUptime / 1000) * 1000;45 var startTime = new Date(uptimeSinceEpochRounded); // Expected startTime46 assert.eq(_idHost, latestStartUpLog.hostname, "Hostname doesn't match one from _id");47 assert.eq(serverStatus.host.split(':')[0],48 latestStartUpLog.hostname,49 "Hostname doesn't match one in server status");50 assert.closeWithinMS(startTime,51 latestStartUpLog.startTime,52 "StartTime doesn't match one from _id",53 2000); // Expect less than 2 sec delta54 assert.eq(cmdLine, latestStartUpLog.cmdLine, "cmdLine doesn't match that from getCmdLineOpts");55 assert.eq(serverStatus.pid, latestStartUpLog.pid, "pid doesn't match that from serverStatus");56 // Test buildinfo57 var buildinfo = db.runCommand("buildinfo");58 delete buildinfo.ok; // Delete extra meta info not in startup_log59 delete buildinfo.operationTime; // Delete extra meta info not in startup_log60 delete buildinfo.$clusterTime; // Delete extra meta info not in startup_log61 var isMaster = db._adminCommand("ismaster");62 // Test buildinfo has the expected keys63 var expectedKeys = [64 "version",65 "gitVersion",66 "allocator",67 "versionArray",68 "javascriptEngine",69 "openssl",70 "buildEnvironment",71 "debug",72 "maxBsonObjectSize",73 "bits",74 "modules"75 ];76 var keys = Object.keySet(latestStartUpLog.buildinfo);77 // Disabled to check78 assert(arrayIsSubset(expectedKeys, keys),79 "buildinfo keys failed! \n expected:\t" + expectedKeys + "\n actual:\t" + keys);80 assert.eq(buildinfo,81 latestStartUpLog.buildinfo,82 "buildinfo doesn't match that from buildinfo command");83 // Test version and version Array84 var version = latestStartUpLog.buildinfo.version.split('-')[0];85 var versionArray = latestStartUpLog.buildinfo.versionArray;86 var versionArrayCleaned = versionArray.slice(0, 3);87 if (versionArray[3] == -100) {88 versionArrayCleaned[2] -= 1;89 }90 assert.eq(serverStatus.version,91 latestStartUpLog.buildinfo.version,92 "Mongo version doesn't match that from ServerStatus");93 assert.eq(94 version, versionArrayCleaned.join('.'), "version doesn't match that from the versionArray");95 var jsEngine = latestStartUpLog.buildinfo.javascriptEngine;96 assert((jsEngine == "none") || jsEngine.startsWith("mozjs"));97 assert.eq(isMaster.maxBsonObjectSize,98 latestStartUpLog.buildinfo.maxBsonObjectSize,99 "maxBsonObjectSize doesn't match one from ismaster");...

Full Screen

Full Screen

tests.js

Source:tests.js Github

copy

Full Screen

1exports.defineAutoTests = function () {2 describe('BuildInfo', function () {3 it ('should exist', function () {4 expect(window.BuildInfo).toBeDefined();5 });6 it ('should contain a Base URL specification that is a string', function () {7 expect(window.BuildInfo.baseUrl).toBeDefined();8 expect((String(window.BuildInfo.baseUrl)).length > 0).toBe(true);9 });10 it ('should contain a PackageName specification that is a string', function () {11 expect(window.BuildInfo.packageName).toBeDefined();12 expect((String(window.BuildInfo.packageName)).length > 0).toBe(true);13 });14 it ('should contain a Base PackageName specification that is a string', function () {15 expect(window.BuildInfo.basePackageName).toBeDefined();16 expect((String(window.BuildInfo.basePackageName)).length > 0).toBe(true);17 });18 it ('should contain a DisplayName specification that is a string', function () {19 expect(window.BuildInfo.displayName).toBeDefined();20 expect((String(window.BuildInfo.displayName)).length > 0).toBe(true);21 });22 it ('should contain a Name specification that is a string', function () {23 expect(window.BuildInfo.name).toBeDefined();24 expect((String(window.BuildInfo.name)).length > 0).toBe(true);25 });26 it ('should contain a Version specification that is a string', function () {27 expect(window.BuildInfo.version).toBeDefined();28 expect((String(window.BuildInfo.version)).length > 0).toBe(true);29 });30 it ('should contain a VersionCode specification that is a string or int', function () {31 expect(window.BuildInfo.versionCode).toBeDefined();32 if ('string' === typeof window.BuildInfo.versionCode || 'object' === typeof window.BuildInfo.versionCode) {33 expect((String(window.BuildInfo.versionCode)).length > 0).toBe(true);34 } else {35 expect(window.BuildInfo.versionCode > 0).toBe(true);36 }37 });38 it ('should contain a debug specification that is a boolean', function () {39 expect(window.BuildInfo.debug).toBeDefined();40 expect(typeof window.BuildInfo.debug).toBe('boolean');41 });42 it ('should contain a BuildType specification that is a string', function () {43 expect(window.BuildInfo.buildType).toBeDefined();44 expect(typeof window.BuildInfo.buildType).toBe('string');45 });46 it ('should contain a Flavor specification that is a string', function () {47 expect(window.BuildInfo.flavor).toBeDefined();48 expect(typeof window.BuildInfo.flavor).toBe('string');49 });50 it ('should contain a BuildDate specification that is a Date', function () {51 expect(window.BuildInfo.buildDate).toBeDefined();52 expect(window.BuildInfo.buildDate instanceof Date).toBe(true);53 });54 it ('should contain a InstallDate specification that is a Date', function () {55 expect(window.BuildInfo.installDate).toBeDefined();56 if (null !== window.BuildInfo.installDate) {57 expect(window.BuildInfo.installDate instanceof Date).toBe(true);58 }59 });60 });61};62exports.defineManualTests = function (contentEl, createActionButton) {63 var logMessage = function (message, color) {64 var log = document.getElementById('info');65 var logLine = document.createElement('div');66 if (color) {67 logLine.style.color = color;68 }69 logLine.innerHTML = message;70 log.appendChild(logLine);71 };72 var clearLog = function () {73 var log = document.getElementById('info');74 log.innerHTML = '';75 };76 var tests = '<h3>Press Dump BuildInfo button to get build information</h3>' +77 '<div id="dump_info"></div>' +78 'Expected result: Status box will get updated with build info.';79 contentEl.innerHTML = '<div id="info"></div>' + tests;80 createActionButton('Dump BuildInfo', function () {81 clearLog();82 logMessage(JSON.stringify(window.BuildInfo, null, "Â¥t"));83 }, 'dump_info');...

Full Screen

Full Screen

zh_CN.js

Source:zh_CN.js Github

copy

Full Screen

1export default {2 'common.comfirm': '确认',3 'common.cancel': '取消',4 'common.comfirmDelete': '确定删除?',5 'common.input.invalid': '请修改输入的内容',6 'header.issues': '问题反馈',7 'header.document': '文档',8 'sidebar.homepage': '主页',9 'sidebar.allbuilds': '所有构建',10 'sidebar.buildinfo': '构建信息',11 'sidebar.insight': '洞察',12 'sidebar.setting': '设置',13 'setting.dingMessage': '钉钉消息设置',14 'setting.addDingMessage': '添加通知',15 'setting.submit': '更新设置',16 'setting.versioning': '版本信息',17 'setting.notification.build': '构建',18 'setting.site': '站点设置',19 'builds.buildNumber': '构建号',20 'builds.buildLog': '运行日志',21 'builds.jobName': '项目名',22 'builds.platform': '平台',23 'builds.buildEndTime': '完成时间',24 'builds.detailInfo': '详情',25 'builds.rank': '排行',26 'buildinfo.pkgTab': '包信息',27 'buildinfo.testTab': '测试结果',28 'buildinfo.extraTab': '扩展信息',29 'buildinfo.filesTab': '产物',30 'buildinfo.pkg.version': '版本号',31 'buildinfo.pkg.type': '类型',32 'buildinfo.pkg.download': '下载',33 'buildinfo.pkg.gitBranch': '代码分支',34 'buildinfo.pkg.gitCommit': '提交链接',35 'buildinfo.pkg.gitInfo': '提交信息',36 'buildinfo.pkg.committer': '提交人',37 'buildinfo.pkg.commitTime': '提交时间',38 'buildinfo.state': '状态',39 'buildinfo.test.lineCoverage': '行覆盖率',40 'buildinfo.test.passPercent': '通过率',41 'buildinfo.test.testReporter': '测试报告',42 'buildinfo.test.coverageReporter': '覆盖率报告',43 'buildinfo.test.reporter': '查看',44 'buildinfo.extra.extraName': '项',45 'buildinfo.extra.extraContent': '内容',46 'buildinfo.files.fileName': '文件名称',47 'buildinfo.files.fileAddress': '下载地址',48 'insight.builds.number': '应用总数',49 'insight.builds.trend': '构建总数',50 'insight.builds.top': '榜单',51 'insight.test.lineCoverage': '平均行覆盖率',52 'insight.test.lineCoverage.tip': '测试覆盖率的平均值',53 'insight.test.lineCoverage.history': '测试覆盖率历史记录',54 'insight.test.lineCoverage.latest': '行覆盖率',55 'insight.test.passPercent': '通过率',56 'insight.test.passPercent.tip': 'CI 100% 成功次数 / CI 执行次数',57 'insight.test.passPercent.history': '通过率历史记录',58 'insight.test.duration': '平均时长',59 'insight.test.duration.history': '时长历史记录',60 'insight.committer': '最后提交',61 'insight.dateRange.tip': '请选择时间范围,不选择将会统计全部数据',...

Full Screen

Full Screen

build-meta-tag.js

Source:build-meta-tag.js Github

copy

Full Screen

1/* jshint node: true */2'use strict';3/**4 * Format a meta tag for injection into the <head> tag.5 *6 * `template` can contain `{VERSION}` and `{COMMIT}` keys that will be7 * replaced with data from `buildInfo`.8 *9 * @param {Object} buildInfo - { version: 'X.Y.Z', commit: '123456'}10 * @param {String} template - template for the meta tag content.11 * @return {String}12 */13module.exports = function(buildInfo, template) {14 // abort meta tag injection if there's no template15 if (!template) { return ''; }16 var output = template17 .replace(/\{SEMVER\}/gi, buildInfo.semver)18 .replace(/\{VERSION\}/gi, buildInfo.version)19 .replace(/\{RELEASE\}/gi, buildInfo.release)20 .replace(/\{BUILD\}/gi, buildInfo.build)21 .replace(/\{COMMIT\}/gi, buildInfo.commit);22 return '<meta name="build-info" content="' + output + '"/>';...

Full Screen

Full Screen

build-info.js

Source:build-info.js Github

copy

Full Screen

1import Ember from 'ember';2export var initialize = function() {3 let application = arguments[1] || arguments[0];4 let version = Ember.Object.create(application.buildInfo);5 let key = 'buildInfo';6 application.register('buildInfo:main', version, { instantiate: false, singleton: true });7 application.inject('route', key, 'buildInfo:main');8 application.inject('controller', key, 'buildInfo:main');9 application.inject('service', key, 'buildInfo:main');10};11export default {12 name: 'buildInfo',13 initialize: initialize...

Full Screen

Full Screen

build-version.js

Source:build-version.js Github

copy

Full Screen

1angular.module('filters').filter('buildVersion',2 function(3 ) {4 'use strict';5 'ngInject';6 return function(buildInfo) {7 if (buildInfo) {8 if (buildInfo.version === buildInfo.base_version || !buildInfo.base_version) {9 return buildInfo.version;10 } else {11 return buildInfo.version + ' (~' + buildInfo.base_version + ')';12 }13 }14 };15 }...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var webdriverio = require('webdriverio');2var options = {3 desiredCapabilities: {4 }5};6 .remote(options)7 .init()8 .getTitle().then(function(title) {9 console.log('Title was: ' + title);10 })11 .end();12var webdriverio = require('webdriverio');13var options = {14 desiredCapabilities: {15 }16};17 .remote(options)18 .init()19 .getTitle().then(function(title) {20 console.log('Title was: ' + title);21 })22 .end();23var webdriverio = require('webdriverio');24var options = {25 desiredCapabilities: {26 }27};28 .remote(options)29 .init()30 .getTitle().then(function(title) {31 console.log('Title was: ' + title);32 })33 .end();34var webdriverio = require('webdriverio');35var options = {36 desiredCapabilities: {37 }38};39 .remote(options)40 .init()41 .getTitle().then(function(title) {42 console.log('Title was: ' + title);43 })44 .end();45var webdriverio = require('webdriverio');46var options = {47 desiredCapabilities: {48 }49};50 .remote(options)51 .init()52 .getTitle().then(function(title) {53 console.log('Title was: ' + title);54 })

Full Screen

Using AI Code Generation

copy

Full Screen

1var webdriverio = require('webdriverio');2var options = {3 desiredCapabilities: {4 }5};6 .remote(options)7 .init()8 .getTitle().then(function(title) {9 console.log('Title was: ' + title);10 })11 .end();12var webdriverio = require('webdriverio');13var options = {14 desiredCapabilities: {15 }16};17 .remote(options)18 .init()19 .getTitle().then(function(title) {20 console.log('Title was: ' + title);21 })22 .end();23var webdriverio = require('webdriverio');24var options = {25 desiredCapabilities: {26 }27};28 .remote(options)29 .init()30 .getTitle().then(function(title) {31 console.log('Title was: ' + title);32 })33 .end();34var webdriverio = require('webdriverio');35var options = {36 desiredCapabilities: {37 }38};39 .remote(options)40 .init()41 .getTitle().then(function(title) {42 console.log('Title was: ' + title);43 })44 .end();

Full Screen

Using AI Code Generation

copy

Full Screen

1var webdriverio = require('webdriverio');2var options = {3 desiredCapabilities: {4 }5};6 .remote(options)7 .init()8 .getTitle().then(function(title) {9 console.log('Title was: ' + title);10 })11 .end();12 at Object.exports._errnoException (util.js:907:11)13 at exports._exceptionWithHostPort (util.js:930:20)14 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1077:14)15Selenium Standalone version (if applicable): 2.53.116var selenium = require('selenium-standalone');17selenium.install(function(err) {18 if (err) return console.log(err);19 selenium.start(function(err, child) {20 if (err) return console.log(err);21 });22});

Full Screen

Using AI Code Generation

copy

Full Screen

1var webdriverio = require('webdriverio');2var options = {3 desiredCapabilities: {4 }5};6 .remote(options)7 .init()8 .getTitle().then(function(title) {9 console.log('Title was: ' + title);10 })11 .end();12var webdriverio = require('webdriverio');13var options = {14 desiredCapabilities: {15 }16};17 .remote(options)18 .init()19 .buildInfo().then(function(buildInfo) {20 console.log('Build info was: ' + buildInfo);21 })22 .end();

Full Screen

Using AI Code Generation

copy

Full Screen

1var webdriverio = require('webdriverio');2var options = {3 desiredCapabilities: {4 }5};6 .remote(options)7 .init()8 .getTitle().then(function(title) {9 console.log('Title was: ' + title);10 })11 .end();12var webdriverio = require('webdriverio');13var options = {14 desiredCapabilities: {15 }16};17 .remote(options)18 .init()19 .getTitle().then(function(title) {20 console.log('Title was: ' + title);21 })22 .end();23var webdriverio = require('webdriverio');24var options = {25 desiredCapabilities: {26 }27};28 .remote(options)29 .init()30 .getTitle().then(function(title) {31 console.log('Title was: ' + title);32 })33 .end();34var webdriverio = require('webdriverio');35var options = {36 desiredCapabilities: {37 }38};39 .remote(options)40 .init()41 .getTitle().then(function(title) {42 console.log('Title was: ' + title);43 })44 .end();45var webdriverio = require('webdriverio');46var options = {47 desiredCapabilities: {48 }49};50 .remote(options)51 .init()52 .getTitle().then(function(title) {53 console.log('Title was: ' + title);54 })55 .end();56var webdriverio = require('webdriverio');57var options = {58 desiredCapabilities: {59 }60};61 .remote(options)62 .init()63 .getTitle().then(function(title)

Full Screen

Using AI Code Generation

copy

Full Screen

1const webdriverio = require('webdriverio');2const options = {3 desiredCapabilities: {4 }5};6 .remote(options)7 .init()8 .getTitle().then(function(title) {9 console.log('Title was: ' + title);10 })11 .buildInfo().then(function(buildInfo) {12 console.log('Build info: ' + JSON.stringify(buildInfo));13 })14 .end();15Build info: {"build":{"version":"4.7.2","revision":"5b7a5a5","time":"2018-04-16T14:03:11.000Z","seleniumVersion":"3.12.0","name":"webdriverio"}}

Full Screen

Using AI Code Generation

copy

Full Screen

1var webdriverio = require('webdriverio');2var options = {3 desiredCapabilities: {4 }5};6 .remote(options)7 .init()8 .buildInfo()9 .then(function(info){10 console.log(info);11 })12 .end();13{ build: { version: '2.44.0',14 'selenium-version': '2.44.0' } }15var webdriverio = require('webdriverio');16var options = {17 desiredCapabilities: {18 }19};20 .remote(options)21 .init()22 .getAttribute('body', 'version')23 .then(function(version){24 console.log(version);25 })26 .end();27var webdriverio = require('webdriverio');28var options = {29 desiredCapabilities: {30 },31};32 .remote(options)33 .init()34 .getAttribute('body', 'version')35 .then(function(version){36 console.log(version);37 })38 .end();

Full Screen

Using AI Code Generation

copy

Full Screen

1browser.buildInfo().then(function (buildInfo) {2 console.log('Build info: ', buildInfo);3});4var webdriver = require('selenium-webdriver');5driver.getCapabilities().then(function (capabilities) {6 console.log('Build info: ', capabilities);7});8export.config = {9 seleniumArgs: {10 drivers: {11 chrome: {12 }13 }14 },15 seleniumInstallArgs: {},16};17`seleniumArgs` are passed directly to `selenium-standalone` and can be used to configure the selenium server. Please refer to the [selenium-standalone](

Full Screen

WebdriverIO Tutorial

Wondering what could be a next-gen browser and mobile test automation framework that is also simple and concise? Yes, that’s right, it's WebdriverIO. Since the setup is very easy to follow compared to Selenium testing configuration, you can configure the features manually thereby being the center of attraction for automation testing. Therefore the testers adopt WedriverIO to fulfill their needs of browser testing.

Learn to run automation testing with WebdriverIO tutorial. Go from a beginner to a professional automation test expert with LambdaTest WebdriverIO tutorial.

Chapters

  1. Running Your First Automation Script - Learn the steps involved to execute your first Test Automation Script using WebdriverIO since the setup is very easy to follow and the features can be configured manually.

  2. Selenium Automation With WebdriverIO - Read more about automation testing with WebdriverIO and how it supports both browsers and mobile devices.

  3. Browser Commands For Selenium Testing - Understand more about the barriers faced while working on your Selenium Automation Scripts in WebdriverIO, the ‘browser’ object and how to use them?

  4. Handling Alerts & Overlay In Selenium - Learn different types of alerts faced during automation, how to handle these alerts and pops and also overlay modal in WebdriverIO.

  5. How To Use Selenium Locators? - Understand how Webdriver uses selenium locators in a most unique way since having to choose web elements very carefully for script execution is very important to get stable test results.

  6. Deep Selectors In Selenium WebdriverIO - The most popular automation testing framework that is extensively adopted by all the testers at a global level is WebdriverIO. Learn how you can use Deep Selectors in Selenium WebdriverIO.

  7. Handling Dropdown In Selenium - Learn more about handling dropdowns and how it's important while performing automated browser testing.

  8. Automated Monkey Testing with Selenium & WebdriverIO - Understand how you can leverage the amazing quality of WebdriverIO along with selenium framework to automate monkey testing of your website or web applications.

  9. JavaScript Testing with Selenium and WebdriverIO - Speed up your Javascript testing with Selenium and WebdriverIO.

  10. Cross Browser Testing With WebdriverIO - Learn more with this step-by-step tutorial about WebdriverIO framework and how cross-browser testing is done with WebdriverIO.

Run Webdriverio automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful