@opentap/runner-client
v2.25.3
Published
This is the web client for the OpenTAP Runner.
Downloads
1,130
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-client
How 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.git
Go to the project directory
~ cd runner-client-web
Install dependencies
npm install
Build the library
npm run build