This is the web client for the OpenTAP Runner.
- 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
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));
}
}
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