Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm not sure that TestCase Errors or Skipped are ever reported to TestRail #11

Open
Benjmeadows opened this issue Sep 13, 2016 · 1 comment

Comments

@Benjmeadows
Copy link

Benjmeadows commented Sep 13, 2016

From the Class:

public class Testsuite {
    private String name;
    private int failures;
    private int errors;
    private int skipped;
    private List<Testcase> cases;
    private List<Testsuite> suits;
    @XmlAttribute
    public void setName(String name) { this.name = name.trim(); }
    @XmlAttribute
    public void setFailures(int failures) { this.failures = failures; }
    @XmlAttribute
    public void setErrors(int errors) { this.errors = errors; }
    @XmlAttribute
    public void setSkipped(int skipped) { this.skipped = skipped; }
    @XmlElement(name = "testcase")
    public void setCases(List<Testcase> cases) { this.cases = cases; }
    @XmlElement(name = "testsuite")
    public void setSuits(List<Testsuite> suits) { this.suits = suits; }

    public String getName() { return this.name; }
    public List<Testcase> getCases() { return this.cases; }
    public List<Testsuite> getSuits() {return this.suits; }
    public int getFailures() { return this.failures; }
    public int getErrors() { return this.errors; }
    public int getSkipped() { return this.skipped; }
    public boolean hasSuits() { return this.suits != null; }
    public boolean hasCases() { return this.cases != null; }

I see in the TestRailNotifier where getSuits() is called and where getName() is called but I don't see anywhere in Notifier where getErros() or getSkipped() are called. Perhaps I am wrong and these are getting reported somewhere else or by another mechanism. Could you help me understand this because I am trying to figure out why my test suites are showing "passed" in TestRail but are failing in Jenkins with errors.

Thanks for forking this project and for putting it on github! If I can help contribute let me know!

Edited for formatting and removed getFailure() from list of things I believe aren't being reported. Last edit, promise.

@Benjmeadows Benjmeadows changed the title I'm not sure that TestCase Failures, Errors or Skipped are ever reported to TestRail I'm not sure that TestCase Errors or Skipped are ever reported to TestRail Sep 13, 2016
@xirsoi
Copy link
Contributor

xirsoi commented Nov 18, 2016

Could you provide a test result that you are seeing this with? The xUnit xml or JSON document containing your results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants