To link automated test case results with a particular manual test on the Testlio platform, use labels. In the test script, use the Allure reporting framework to add a testlioManualTestID
label to the specific tests with a value of the manual test ID.
Get the Manual Test ID
Before adding the label, you need to get ID of the relevant manual test. Follow these steps:
In the workspace on the Testlio platform, click Tests.
Open the test you want the ID of.
In the Test Details sidebar, hover over the ID.
Click the copy button to copy the test ID.
Add the Label to the Automated Test
How to add the label depends on the environment and programming language you're using. See the following examples.
Java (TestNG)
import org.testng.annotations.Test;
import io.qameta.allure.model.Label;
import static io.qameta.allure.Allure.getLifecycle;
@Test
public void testCase() {
Label label = new Label();
label.setName("testlioManualTestID");
label.setValue("636aad07-dbdc-419e-92d6-0d432c07895c");
getLifecycle().updateTestCase(testResult -> testResult.getLabels().add(label));
}
Node.js (WebdriverIO, Mockito)
import allureReporter from '@wdio/allure-reporter';
describe('When on login screen', () => {
it('checks that can login with correct credentials', async() => {
allureReporter.addLabel('testlioManualTestID', '636aad07-dbdc-419e-92d6-0d432c07895c');
});
});