@opentap/runner-client
v3.2.0
Published
This is the web client for the OpenTAP Runner.
Readme
OpenTap Runner Client
This is the web client for the OpenTAP Runner.
Authors
How to install the client
- For Angular < 11 or webpack < 5, use version < 2
- For Angular >= 11 or webpack >= 5, use version >= 2.x.x
Install with npm
npm install @opentap/runner-clientHow to use the client
import { RunnerClient } from "@openTap/runner-client";
class client {
runnerClient: RunnerClient;
constructor() {
this.runnerClient = new RunnerClient('<BASE_SUBJECT>', { servers: '<SERVER_ADDRESS>' });
// Always connect first
this.runnerClient.connect()
.then(() => console.log('CONNECTED'))
.catch(err => console.log(err));
}
getImages() {
this.data = this.runnerClient?.getImages()
.then(res => console.log(res))
.catch(error => console.error(error));
}
}
How to build locally
Clone the project
~ git clone https://github.com/opentap/runner-client-web.gitGo to the project directory
~ cd runner-client-webInstall dependencies
npm installBuild the library
npm run build