Search in sources :

Example 1 with FactoryTestCase

use of org.cerberus.crud.factory.impl.FactoryTestCase in project cerberus-source by cerberustesting.

the class ExportListTestCase method getTestCaseFromRequest.

private TestCase getTestCaseFromRequest(HttpServletRequest req) {
    String test = this.getValue(req, "ScTest");
    String testCase = "%" + this.getValue(req, "ScTestCase") + "%";
    String project = this.getValue(req, "ScProject");
    String ticket = this.getValue(req, "ScTicket");
    String bug = this.getValue(req, "ScBugID");
    String origine = this.getValue(req, "ScOrigine");
    String creator = this.getValue(req, "ScCreator");
    String application = this.getValue(req, "ScApplication");
    int priority = -1;
    if (req.getParameter("ScPriority") != null && !req.getParameter("ScPriority").equalsIgnoreCase("All") && StringUtil.isInteger(req.getParameter("ScPriority"))) {
        priority = Integer.parseInt(req.getParameter("ScPriority"));
    }
    String status = this.getValue(req, "ScStatus");
    String group = this.getValue(req, "ScGroup");
    String prod = this.getValue(req, "ScPROD");
    String qa = this.getValue(req, "ScQA");
    String uat = this.getValue(req, "ScUAT");
    String active = this.getValue(req, "ScActive");
    String conditionOper = this.getValue(req, "ScConditionOper");
    String conditionVal1 = this.getValue(req, "ScConditionVal1");
    String conditionVal2 = this.getValue(req, "ScConditionVal2");
    String fBuild = this.getValue(req, "ScFBuild");
    String fRev = this.getValue(req, "ScFRev");
    String tBuild = this.getValue(req, "ScTBuild");
    String tRev = this.getValue(req, "ScTRev");
    String targetBuild = this.getValue(req, "ScTargetBuild");
    String targetRev = this.getValue(req, "ScTargetRev");
    String function = this.getValue(req, "function");
    IFactoryTestCase factoryTCase = new FactoryTestCase();
    return factoryTCase.create(test, testCase, origine, null, creator, null, null, project, ticket, function, application, qa, uat, prod, priority, group, status, null, null, null, active, conditionOper, conditionVal1, conditionVal2, fBuild, fRev, tBuild, tRev, null, bug, targetBuild, targetRev, null, "", "", null, null, null, null);
}
Also used : IFactoryTestCase(org.cerberus.crud.factory.IFactoryTestCase) FactoryTestCase(org.cerberus.crud.factory.impl.FactoryTestCase) IFactoryTestCase(org.cerberus.crud.factory.IFactoryTestCase)

Aggregations

IFactoryTestCase (org.cerberus.crud.factory.IFactoryTestCase)1 FactoryTestCase (org.cerberus.crud.factory.impl.FactoryTestCase)1