Testlio Manual Tests linking
In order to link automated test case results with a particular manual test case on the Testlio platform, in the test script code you should add a label testlioManualTestID
to the specific test cases, having corresponding Testlio Manual Test ID as a value using the Allure reporting framework.
Below you can see how this label can be set in different environments and programming languages.
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 (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');
});
});
To obtain the Testlio Manual Test ID:
Login to the Testlio platform
Select a workspace
Go to the Tests view
Find and mark with checkboxes test cases you’re looking for
Click Export button
Mark with checkbox "Include references for update on import"
Click Start Export in the appearing modal
In the downloaded CSV you will be able to find the corresponding manual test GUID for each exported test case (look for
Existing test ID
column)