Skip to main content

Link Automated & Manual Tests

Doris Sooläte avatar
Written by Doris Sooläte
Updated over a week ago

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:

  1. In the workspace on the Testlio platform, click Tests.

  2. Open the test you want the ID of.

  3. In the Test Details sidebar, hover over the ID.

  4. Click the copy button to copy the test ID.

Test Details for a test with the ID TEST-4396 and a button to copy the Testlio manual test ID, with a long string of letters and numbers.

Add the Label to the Automated Test

How to add the label depends on the environment and programming language you're using.

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');
});
});

Did this answer your question?