All Downloads are FREE. Search and download functionalities are using the official Maven repository.

qa.tools.ikeeper.action.ActionMessage Maven / Gradle / Ivy

Go to download

Issue keeper is a tracking tool which makes the tests skipped in advance when they are blocked by the open issues.

There is a newer version: 4.13.2
Show newest version
package qa.tools.ikeeper.action;

import qa.tools.ikeeper.IssueDetails;

class ActionMessage {

    public static String generate(String testName, IssueDetails details, String result) {
        String description = details.getDescription();
        String msg = testName + " - this test " + result + " due to:\n\t" + formatId(details.getId()) + " " + details.getTitle() + "\n\tstatus: " + details.getStatusName() + formatDescription(description);
        return msg;
    }

    private static String formatId(String id) {
        return id.matches("[0-9].*") ? "BZ-" + id : id;
    }

    private static String formatDescription(String description) {
        return description == null || description.isEmpty() ? "" : "\n\tdescription: " + description;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy