Servizio Testingbot
Servizio WebdriverIO che fornisce una migliore integrazione con TestingBot. Aggiorna i metadati del job ('name', 'passed', 'tags', 'public', 'build', 'extra') ed esegue TestingBot Tunnel se desiderato.
Installazione
Il modo più semplice è mantenere @wdio/testingbot-service
come devDependency nel tuo file package.json
, tramite:
npm install @wdio/testingbot-service --save-dev
Le istruzioni su come installare WebdriverIO
possono essere trovate qui.
Configurazione
Per utilizzare il servizio è necessario impostare user
e key
nel tuo file wdio.conf.js
, e impostare l'opzione hostname
su hub.testingbot.com
. Se desideri utilizzare TestingBot Tunnel
devi impostare tbTunnel: true
.
// wdio.conf.js
export const config = {
// ...
user: process.env.TB_KEY,
key: process.env.TB_SECRET,
services: [
['testingbot', {
tbTunnel: true
}]
],
// ...
};
Opzioni
Per autorizzare il servizio TestingBot, la tua configurazione deve contenere le opzioni user
e key
.
tbTunnel
Se impostato a true, esegue TestingBot Tunnel e apre una connessione sicura con una Macchina Virtuale TestingBot che esegue i tuoi test del browser.
Tipo: Boolean
Predefinito: false
tbTunnelOpts
Applica le opzioni di TestingBot Tunnel (ad esempio per modificare il numero di porta o le impostazioni del logFile). Consulta questa lista per maggiori informazioni.
Tipo: Object
Predefinito: {}