Coder Social home page Coder Social logo

java-agent-testng's Introduction

java-agent-testng's People

Contributors

akamarouski avatar avabishchevich avatar brutskov avatar danymill avatar dikazak avatar hursevich avatar nsidorevich avatar sergeizagriychuk avatar sergeybrenko avatar tsvrko avatar vdelendik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

java-agent-testng's Issues

Test sessions are not tracked in Zebrunner properly for failed tests with not unique method name and parameters defined on suite level

On one of the projects we have test method defined in next way:

@Parameters({"TUID", "userType", "startPage"})
    @Test()
    public void verifyItemSelection(String TUID, String userType, String startPage) {
        TestRail.setTestCaseId(TUID);
        ......

Then on suite level we have multiple test items with different parameters, e.g.:

<test name="name1" enabled="true">
        <parameter name="TUID" value="3709692,3705554"/>
        <parameter name="userType" value="type1"/>
        <parameter name="filterOption" value="filter1"/>
        <parameter name="startPage" value="page1"/>
        <classes>
            <class name="classname1">
                <methods>
                    <include name="verifyAppFilterResultsTest"/>
                </methods>
            </class>
        </classes>
    </test>

    <test name="name2" enabled="true">
        <parameter name="TUID" value="3709696,3705558"/>
        <parameter name="userType" value="type2"/>
        <parameter name="filterOption" value="filter2"/>
        <parameter name="startPage" value="page2"/>
        <classes>
            <class name="classname2">
                <methods>
                    <include name="verifyAppFilterResultsTest"/>
                </methods>
            </class>
        </classes>
    </test>

As a result in Zebrunner report for failed tests which are organised this way we have not realistic amount of tracked sessions. because test results page also includes sessions and logs related to other test items (see screenshot)
image
image

Introduce ability to skip retry logic for failing tests which have known issues in association

Scenario is next:

  • we have a test suite with number of failures which are mapped to tickets (bugs) in Jira
  • those failures are already mapped in test runs in zebrunner
  • during the next run such tests fail because of bug reason (with error stacktrace already saved in zebrunner)
  • right now such tests are restarted again in case if retry_count parameter > 0

The idea is to disable retrying logic for tests like this as it doesn't make any sense.
So on test failure agent should check whether such error with same stacktrace already linked to a bug and skip retrying if condition has been met.

Benefits:

  • saving of overall execution time especially if amount of failures linked to bugs is sufficient and count of retry attempts in configuration is high.

Launch time execution is displayed incorrectly while running several XML suites at once

Launch time execution in Zebrunner is displayed incorrectly while running several XML suites at once

Steps to reproduce:

  1. There are several XML TestNG suites to execute
  2. Run them together using the command:
mvn clean test -DsuiteXmlFile=suite1.xml,suite2.xml,suite3.xml,suite4.xml
  1. When launch is finished, check its time execution

Actual Result: Tests were executing about 30 minutes, but launch time execution in Zebrunner is displayed 1 hour 21 minutes (elapsed value returned by BE). If sum up time execution of all tests - the result is correct (30 minutes).
The issue happens due to sending finish launch request 4 times by TestNG agent (number of requests equals to number of executed suites).
If execute only one suite, the issue is not reproducible.

TestNG version: 7.6.1
Zebrunner TestNG agent version: 1.9.5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.