Version 4

    Introduction

    In order to create reports, Ttriage application make use of some files like xml, json that contain tests execution results and image files with screenshots.

    All of them must be configured on CI tool, and that configuration can be different, depends on the Ci tool used (Jenkins, CircleCI, Bamboo, TeamCity, Gitlab, etc).

     

    Jenkins

    • Job --> Configure --> Post-build Actions --> Archive the Artifacts
    • 'Files to archive' can be a single file or directory path location. Some examples:
      • **/target/surefire-reports/testng-results.xml
      • **/target/*
      • **/surefire-reports/*.xml
      • **/target/robotframework/*.png
    • If the configuration worked, you will be able to see the files archived on "{JENKINS_URL}/{JOB_NAME}/{BUILD_NUMBER}/artifact"

     

    CircleCI

    • Configure 'store_artifacts' section on config.xml file.
    • More information Storing Build Artifacts - CircleCI
    • If the configuration worked, you will be able to see the files archived on "Job --> Build --> Artifacts"

     

    GitLab

    • Configure 'artifacts' section on gitlab-ci.yml
    • More information Introduction to job artifacts | GitLab
    • If the configuration worked, you will be able to see the files archived on
      • In CI/CD Job view: Job --> Build, 'Job Artifacts' section at right pannel
      • In CI/CD Pipelines view: a download button at right of pipeline row

     

    Bamboo

    • Plan --> Actions --> Configure Plan --> Stage & Jobs section --> Create artifact
    • More information Configuring a job's build artifacts
    • If the configuration worked, you will be able to see the files archived on "Project --> Plan --> Build Number --> Artifacts"

     

    Teamcity

    • Soon....

     

    Name files convention

    Ttriage application looks for specific artifact files on CI tools, to do that, the files should follow next name convention:

    • TestNG: testng-results.xml
    • JUnit: any file with the pattern name TEST-*.xml
    • Robot Framework: output.xml
    • Cucumber: cucumber.json in case of json configuration
    • Allure report: json files with testcases under 'allure-report/data/test-cases' directory
    • Cypress: cypress-report.json in case of json mochawesome configuration