use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule030203Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
// checkResultIsPassed(processPageTest("Rgaa32016.Test.3.2.3-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
// ProcessResult processResult = processPageTest("Rgaa32016.Test.3.2.3-2Failed-01");
// checkResultIsFailed(processResult, 1, 1);
// checkRemarkIsPresent(
// processResult,
// TestSolution.FAILED,
// "#MessageHere",
// "#CurrentElementHere",
// 1,
// new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.3.2.3-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.3.2.3-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule080401Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//---------------------------1Passed-01---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.04.01-1Passed-01"), 1);
//----------------------------------------------------------------------
//---------------------------1Passed-02---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.04.01-1Passed-02"), 1);
//----------------------------------------------------------------------
//---------------------------1Passed-03---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.04.01-1Passed-03"), 1);
//----------------------------------------------------------------------
//---------------------------2Failed-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-01");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.WRONG_LANGUAGE_DECLARATION_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "aq"));
//----------------------------------------------------------------------
//---------------------------2Failed-02---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-02");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.WRONG_LANGUAGE_DECLARATION_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "aq"));
//----------------------------------------------------------------------
//---------------------------2Failed-03---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-03");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.MALFORMED_LANGUAGE_DECLARATION_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "en-U"));
//----------------------------------------------------------------------
//---------------------------2Failed-04---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-04");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.MALFORMED_LANGUAGE_DECLARATION_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "english"));
//----------------------------------------------------------------------
//---------------------------2Failed-05---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-05");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.IRRELEVANT_LANG_DECL_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "ro"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "de"));
//----------------------------------------------------------------------
//---------------------------2Failed-06---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-2Failed-06");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.MALFORMED_LANGUAGE_DECLARATION_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "en;US"));
//----------------------------------------------------------------------
//---------------------------3NMI-01------------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.SUSPECTED_IRRELEVANT_LANG_DECL_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "de"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "(testcase warning one)"));
//----------------------------------------------------------------------
//---------------------------3NMI-02------------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.04.01-3NMI-02");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.SUSPECTED_RELEVANT_LANG_DECL_MSG, HtmlElementStore.HTML_ELEMENT, 1, new ImmutablePair(EvidenceStore.LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.DETECTED_LANGUAGE_EE, "en"), new ImmutablePair(EvidenceStore.EXTRACTED_TEXT_EE, "en"));
//----------------------------------------------------------------------
//---------------------------4NA-01-------------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.08.04.01-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule080501Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01---------------------------------
//----------------------------------------------------------------------
checkResultIsPassed(processPageTest("Rgaa32016.Test.08.05.01-1Passed-01"), 1);
//----------------------------------------------------------------------
//----------------------------2Failed-01--------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.08.05.01-2Failed-01");
checkResultIsFailed(processResult, 0, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.TITLE_TAG_MISSING_MSG, "", 1);
//----------------------------------------------------------------------
//----------------------------2Failed-02--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.05.01-2Failed-02");
checkResultIsFailed(processResult, 0, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.TITLE_TAG_MISSING_MSG, "", 1);
//----------------------------------------------------------------------
//----------------------------2Failed-03--------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.08.05.01-2Failed-03");
checkResultIsFailed(processResult, 2, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.TITLE_TAG_MISSING_MSG, "", 1);
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule090301Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
// checkResultIsPassed(processPageTest("Rgaa32016.Test.9.3.1-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
// ProcessResult processResult = processPageTest("Rgaa32016.Test.9.3.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.9.3.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.9.3.1-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule090302Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
// checkResultIsPassed(processPageTest("Rgaa32016.Test.9.3.2-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
// ProcessResult processResult = processPageTest("Rgaa32016.Test.9.3.2-2Failed-01");
// checkResultIsFailed(processResult, 1, 1);
// checkRemarkIsPresent(
// processResult,
// TestSolution.FAILED,
// "#MessageHere",
// "#CurrentElementHere",
// 1,
// new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.9.3.2-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.9.3.2-4NA-01"));
}
Aggregations