Getting Started¶
Using BOPTEST¶
There are two ways you can access BOPTEST, depending on your preference:
1. Single Test Case on Local Computing Resource: Deploy a single test case on your local computing resource and interact with it at localhost via the BOPTEST API.
2. Public Web-Service: Utilize a web-hosted BOPTEST environment (BOPTEST-Service) available to the public to deploy a test case in the cloud and interact with it at a URL specific to you via the BOPTEST API.
Single Test Case on Local Computing Resource¶
Installation¶
Install Docker and docker-compose on your system.
Download the latest version of BOPTEST as a .zip and extract it to a location.
Deploy a Test Case¶
Within the root directory of the extracted software, use the following commands:
Linux or macOS:
$ TESTCASE=<testcase_name> docker-compose upWindows PowerShell:
> ($env:TESTCASE="<testcase_name>") -and (docker-compose up)
A couple notes:
Replace
<testcase_name>with the name of the test case you wish to deploy.The first time this command is run, the image
boptest_basewill be built. This takes about a minute. Subsequent usage will use the already-built image and deploy much faster.If you update your BOPTEST repository, use the command
docker rmi boptest_baseto remove the image so it can be re-built with the updated repository upon next deployment.TESTCASEis simply an environment variable. Consistent with use of docker-compose, you may also edit the value of this variable in the.envfile and then usedocker-compose up.
Use the API¶
Send API requests to localhost port 5000 as http://127.0.0.1:5000/<request>. See the section API Summary for more information on available requests.
Stop the Test Case¶
Within the root directory of the extracted software, use the command docker-compose down.
Public Web-Service¶
Installation¶
There are no installation requirements.
Deploy a Test Case¶
Send the following API request to url https://api.boptest.net.
POST
<url>/testcases/<testcase_name>/select, where<testcase_name>is replaced with the name of the test case you wish to deploy.The return will be a json with
{'testid': <testid>}.
The returned <testid> will be needed for all future API requests associated
with your chosen test case.
Use the API¶
Send API requests to <url>/<request>/<testid>, where <testid> is returned from the previous step.
See the section API Summary for more information on available requests.
Stop the Test Case¶
Send the following API request: <url>/stop/<testid>.
Note that the test case will be stopped automatically in case of a period of
inactivity. If this happens, a new test case should be deployed
using the actions described previously.