Skip to content
English
  • There are no suggestions because the search field is empty.

How to avoid creation or update of automated test cases from non-main branches

    Selective test documentation creation

    In a situation when it is required that the result of the autotest execution after Launch closing does not lead to the fact that the associated manual test case would become automated because the work on this test case has not yet been completed and its results do not meet expectations and it cannot be used in runs. For these types of situations, we have two possible solutions


    Solution #1

    Configuring AQL Documentation Update Rules (this solution was created in the system precisely for such type of situations)

    Based on AQL for Launches (https://docs.qameta.io/allure-testops/advanced/aql/launches/) each Launch has information from the CI/CD system, such as Names and Tags, so we can update the test documentation or ignore its update using this information:


    Example #1

    Test documentation updates on the main branch


    Example #2

    By Tags. Test documentation updates only if there is no "skip-live-doc" tag in the Launch Tags


    Example #3

    By Name. Test documentation updates only for Launches with the "Launch at" substring in the Launch Name


    Solution #2

    Use Alure ID as label with -1 value AS_ID = -1

    Example for Java (@AllureId("-1"))

    In this solution, the result will be marked as Orphaned and no test case will be updated and will not become automated until the correct AllureId is specified for it. 


    Note: Please consider Solution #1 as the main solution method. It has a higher chance to avoid human factor mistakes.