Search in sources :

Example 21 with ProcessResult

use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.

the class Rgaa30Rule101301Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------3NMI-01------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-01");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-02------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-02");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-03------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-03");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-04------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-04");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-05------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-05");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-06------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-06");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-07------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-07");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-08------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-08");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-09------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-09");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-10------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-10");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-11------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-11");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-12------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-12");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-13------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-13");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-14------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-14");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-15------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-15");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-16------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-16");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-17------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-17");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-18------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-18");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-19------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-19");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------3NMI-20------------------------------
    //----------------------------------------------------------------------
    processResult = processPageTest("Rgaa30.Test.10.13.1-3NMI-20");
    checkResultIsPreQualified(processResult, 1, 1);
    checkRemarkIsPresent(processResult, TestSolution.NEED_MORE_INFO, RemarkMessageStore.HIDDEN_TEXT_DETECTED_MSG, HtmlElementStore.SPAN_ELEMENT, 1);
    //----------------------------------------------------------------------
    //------------------------------4NA-01----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa30.Test.10.13.1-4NA-01"));
    //----------------------------------------------------------------------
    //------------------------------4NA-02----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa30.Test.10.13.1-4NA-02"));
    //----------------------------------------------------------------------
    //------------------------------4NA-03----------------------------------
    //----------------------------------------------------------------------
    checkResultIsNotApplicable(processPageTest("Rgaa30.Test.10.13.1-4NA-03"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 22 with ProcessResult

use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.

the class Rgaa30Rule101302Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.13.2-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.13.2-2Failed-01");
    //        checkResultIsFailed(processResult, 1, 1);
    //        checkRemarkIsPresent(
    //                processResult,
    //                TestSolution.FAILED,
    //                "#MessageHere",
    //                "#CurrentElementHere",
    //                1,
    //                new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
    //----------------------------------------------------------------------
    //------------------------------3NMI-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa30.Test.10.13.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("Rgaa30.Test.10.13.2-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 23 with ProcessResult

use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.

the class Rgaa30Rule101303Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.13.3-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.13.3-2Failed-01");
    //        checkResultIsFailed(processResult, 1, 1);
    //        checkRemarkIsPresent(
    //                processResult,
    //                TestSolution.FAILED,
    //                "#MessageHere",
    //                "#CurrentElementHere",
    //                1,
    //                new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
    //----------------------------------------------------------------------
    //------------------------------3NMI-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa30.Test.10.13.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("Rgaa30.Test.10.13.3-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 24 with ProcessResult

use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.

the class Rgaa30Rule100703Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.7.3-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.7.3-2Failed-01");
    //        checkResultIsFailed(processResult, 1, 1);
    //        checkRemarkIsPresent(
    //                processResult,
    //                TestSolution.FAILED,
    //                "#MessageHere",
    //                "#CurrentElementHere",
    //                1,
    //                new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
    //----------------------------------------------------------------------
    //------------------------------3NMI-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa30.Test.10.7.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("Rgaa30.Test.10.7.3-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Example 25 with ProcessResult

use of org.asqatasun.entity.audit.ProcessResult in project Asqatasun by Asqatasun.

the class Rgaa30Rule100801Test method setProcess.

@Override
protected void setProcess() {
    //----------------------------------------------------------------------
    //------------------------------1Passed-01------------------------------
    //----------------------------------------------------------------------
    //        checkResultIsPassed(processPageTest("Rgaa30.Test.10.8.1-1Passed-01"), 1);
    //----------------------------------------------------------------------
    //------------------------------2Failed-01------------------------------
    //----------------------------------------------------------------------
    //        ProcessResult processResult = processPageTest("Rgaa30.Test.10.8.1-2Failed-01");
    //        checkResultIsFailed(processResult, 1, 1);
    //        checkRemarkIsPresent(
    //                processResult,
    //                TestSolution.FAILED,
    //                "#MessageHere",
    //                "#CurrentElementHere",
    //                1,
    //                new ImmutablePair("#ExtractedAttributeAsEvidence", "#ExtractedAttributeValue"));
    //----------------------------------------------------------------------
    //------------------------------3NMI-01---------------------------------
    //----------------------------------------------------------------------
    ProcessResult processResult = processPageTest("Rgaa30.Test.10.8.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("Rgaa30.Test.10.8.1-4NA-01"));
}
Also used : ProcessResult(org.asqatasun.entity.audit.ProcessResult)

Aggregations

ProcessResult (org.asqatasun.entity.audit.ProcessResult)856 SourceCodeRemark (org.asqatasun.entity.audit.SourceCodeRemark)143 ImmutablePair (org.apache.commons.lang3.tuple.ImmutablePair)109 LinkedHashSet (java.util.LinkedHashSet)77 EvidenceElement (org.asqatasun.entity.audit.EvidenceElement)53 IndefiniteResult (org.asqatasun.entity.audit.IndefiniteResult)41 ProcessRemark (org.asqatasun.entity.audit.ProcessRemark)41 WebResource (org.asqatasun.entity.subject.WebResource)8 ArrayList (java.util.ArrayList)4 Audit (org.asqatasun.entity.audit.Audit)4 DefiniteResult (org.asqatasun.entity.audit.DefiniteResult)4 Page (org.asqatasun.entity.subject.Page)4 Site (org.asqatasun.entity.subject.Site)4 List (java.util.List)3 SourceCodeRemarkImpl (org.asqatasun.entity.audit.SourceCodeRemarkImpl)3 Test (org.asqatasun.entity.reference.Test)3 Map (java.util.Map)2 Content (org.asqatasun.entity.audit.Content)2 TestSolution (org.asqatasun.entity.audit.TestSolution)2 CriterionStatistics (org.asqatasun.entity.statistics.CriterionStatistics)2