use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule131201Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
// checkResultIsPassed(processPageTest("Rgaa32016.Test.13.12.1-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
// ProcessResult processResult = processPageTest("Rgaa32016.Test.13.12.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.13.12.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.13.12.1-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule020201Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
ProcessResult processResult = processPageTest("Rgaa32016.Test.2.2.1-2Failed-01");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_TITLE_OF_IFRAME_MSG, HtmlElementStore.IFRAME_ELEMENT, 1, new ImmutablePair(TITLE_ATTR, ""));
//----------------------------------------------------------------------
//------------------------------2Failed-02------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.2.2.1-2Failed-02");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_TITLE_OF_IFRAME_MSG, HtmlElementStore.IFRAME_ELEMENT, 1, new ImmutablePair(TITLE_ATTR, ""));
//----------------------------------------------------------------------
//------------------------------2Failed-03------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.2.2.1-2Failed-03");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_TITLE_OF_IFRAME_MSG, HtmlElementStore.IFRAME_ELEMENT, 1, new ImmutablePair(TITLE_ATTR, "!§:;.,?%*\\~/@()[]^_°=+-"));
//----------------------------------------------------------------------
//------------------------------2Failed-04------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.2.2.1-2Failed-04");
checkResultIsFailed(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.FAILED, RemarkMessageStore.NOT_PERTINENT_TITLE_OF_IFRAME_MSG, HtmlElementStore.IFRAME_ELEMENT, 1, new ImmutablePair(TITLE_ATTR, "mock-iframe.html"));
//----------------------------------------------------------------------
//------------------------------3NMI-01---------------------------------
//----------------------------------------------------------------------
processResult = processPageTest("Rgaa32016.Test.2.2.1-3NMI-01");
checkResultIsPreQualified(processResult, 1, 1);
checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.CHECK_TITLE_OF_IFRAME_PERTINENCE_MSG, HtmlElementStore.IFRAME_ELEMENT, 1, new ImmutablePair(TITLE_ATTR, "title of iframe"));
//----------------------------------------------------------------------
//------------------------------4NA-01----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.2.2.1-4NA-01"));
//----------------------------------------------------------------------
//------------------------------4NA-02----------------------------------
//----------------------------------------------------------------------
checkResultIsNotApplicable(processPageTest("Rgaa32016.Test.2.2.1-4NA-02"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule030101Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
// checkResultIsPassed(processPageTest("Rgaa32016.Test.3.1.1-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
// ProcessResult processResult = processPageTest("Rgaa32016.Test.3.1.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.3.1.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.3.1.1-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule030102Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
// checkResultIsPassed(processPageTest("Rgaa32016.Test.3.1.2-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
// ProcessResult processResult = processPageTest("Rgaa32016.Test.3.1.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.3.1.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.3.1.2-4NA-01"));
}
use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.
the class Rgaa32016Rule030104Test method setProcess.
@Override
protected void setProcess() {
//----------------------------------------------------------------------
//------------------------------1Passed-01------------------------------
//----------------------------------------------------------------------
// checkResultIsPassed(processPageTest("Rgaa32016.Test.3.1.4-1Passed-01"), 1);
//----------------------------------------------------------------------
//------------------------------2Failed-01------------------------------
//----------------------------------------------------------------------
// ProcessResult processResult = processPageTest("Rgaa32016.Test.3.1.4-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.1.4-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.1.4-4NA-01"));
}
Aggregations