use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule010101Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.1.1.1-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.1.1.1-2Failed-01");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.ALT_MISSING_MSG, HtmlElementStore.IMG_ELEMENT, 1, new ImmutablePair(SRC_ATTR, "mock-image-failed.jpg"));
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.1.1.1-2Failed-02");
checkResultIsFailed(processResult, 2, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.ALT_MISSING_MSG, HtmlElementStore.IMG_ELEMENT, 1, new ImmutablePair(SRC_ATTR, "mock-image-failed.jpg"));
//----------------------------------------------------------------------
//------------------------------2Failed-03------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.1.1.1-2Failed-03");
checkResultIsFailed(processResult, 2, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.ALT_MISSING_MSG, HtmlElementStore.IMG_ELEMENT, 1, new ImmutablePair(SRC_ATTR, "mock-image-failed.jpg"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.1.1-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule010102Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.1.1.2-1Passed-01"), 2);
//----------------------------------------------------------------------
//------------------------------1Passed-02------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.1.1.2-1Passed-02"), 2);
//----------------------------------------------------------------------
//------------------------------1Passed-03------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.1.1.2-1Passed-03"), 2);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.1.1.2-2Failed-01");
checkResultIsFailed(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.ALT_MISSING_MSG, HtmlElementStore.AREA_ELEMENT, 1, new ImmutablePair(HREF_ATTR, ABSENT_ATTRIBUTE_VALUE));
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.ALT_MISSING_MSG, HtmlElementStore.AREA_ELEMENT, 2, new ImmutablePair(HREF_ATTR, ABSENT_ATTRIBUTE_VALUE));
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.1.1.2-2Failed-02");
checkResultIsFailed(processResult, 2, 2);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.ALT_MISSING_MSG, HtmlElementStore.AREA_ELEMENT, 1, new ImmutablePair(HREF_ATTR, ABSENT_ATTRIBUTE_VALUE));
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.ALT_MISSING_MSG, HtmlElementStore.AREA_ELEMENT, 2, new ImmutablePair(HREF_ATTR, ABSENT_ATTRIBUTE_VALUE));
//----------------------------------------------------------------------
//------------------------------2Failed-03------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.1.1.2-2Failed-03");
checkResultIsFailed(processResult, 2, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.ALT_MISSING_MSG, HtmlElementStore.AREA_ELEMENT, 1, new ImmutablePair(HREF_ATTR, "mock-area-link.html"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.1.2-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.1.2-4NA-02"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule010103Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.1.1.3-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------1Passed-02------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.1.1.3-1Passed-02"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.1.1.3-2Failed-01");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.ALT_MISSING_MSG, HtmlElementStore.INPUT_ELEMENT, 1, new ImmutablePair(SRC_ATTR, ABSENT_ATTRIBUTE_VALUE));
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.1.1.3-2Failed-02");
checkResultIsFailed(processResult, 2, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.ALT_MISSING_MSG, HtmlElementStore.INPUT_ELEMENT, 1, new ImmutablePair(SRC_ATTR, "mock-input-src.jpg"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.1.3-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.1.3-4NA-02"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule010104Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.1.1.4-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, CHECK_LINK_ASSO_WITH_SERVER_SIDED_IMG_MAP, HtmlElementStore.IMG_ELEMENT, 1, new ImmutablePair(ALT_ATTR, "Map"), new ImmutablePair(SRC_ATTR, "mock-image-ismap-presence.jpg"));
//----------------------------------------------------------------------
//------------------------------3NMI-02---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.1.1.4-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, CHECK_LINK_ASSO_WITH_SERVER_SIDED_IMG_MAP, HtmlElementStore.INPUT_ELEMENT, 1, new ImmutablePair(ALT_ATTR, "Map"), new ImmutablePair(SRC_ATTR, "mock-image-ismap-presence.jpg"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.1.4-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule010201Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
// checkResultIsPassed(processPageTest("Rgaa32016.Test.1.2.1-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
// ProcessResult processResult = processPageTest("Rgaa32016.Test.1.2.1-2Failed-01");
// checkResultIsFailed(processResult, 1, 1);
// checkRemarkIsPresent(
// processResult,
// TestSolution.FAILED,
// "#MessageHere",
// "#CurrentElementHere",
// 1,
// new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.1.2.1-3NMI-01");
// temporary result to make the result buildable before implementation
checkResultIsNotTested(processResult);
// checkResultIsPreQualified(processResult, 2, 1);
// checkRemarkIsPresent(
// processResult,
// TestSolution.NEED_MORE_INFO,
// "#MessageHere",
// "#CurrentElementHere",
// 1,
// new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
//----------------------------------------------------------------------
//------------------------------4NA-01------------------------------
//----------------------------------------------------------------------
// checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.1.2.1-4NA-01"));
}
Aggregations