@Override
    public OperationResult operate(TestStep testStep) {
        String testStepName = testStep.getLocator().getValue();

        LogRecord log = LogRecord.info(LOG, testStep, "script.execute", testStepName);

        current.backup();

        TestScript testScript = dao.load(new File(pm.getPageScriptDir(), testStepName), sheetName,
                false);

        current.setTestScript(testScript);
        current.reset();
        current.setCurrentIndex(current.getCurrentIndex() - 1);
        String caseNo = testStep.getValue();
        if (testScript.containsCaseNo(caseNo)) {
            current.setCaseNo(caseNo);
        } else {
            String msg = MessageManager.getMessage("case.number.error", caseNo)
                    + testScript.getCaseNoMap().keySet();
            throw new TestException(msg);
        }
        current.setTestContextListener(this);

        return new OperationResult(log);
    }
@ Override public OperationResult operate ( TestStep testStep ) { String testStepName = testStep . getLocator ( ) . getValue ( ) ; LogRecord log = LogRecord . info ( LOG , testStep , "script.execute" , testStepName ) ; current . backup ( ) ; TestScript testScript = dao . load ( new File ( pm . getPageScriptDir ( ) , testStepName ) , sheetName , false ) ; current . setTestScript ( testScript ) ; current . reset ( ) ; current . setCurrentIndex ( current . getCurrentIndex ( ) - 1 ) ; String caseNo = testStep . getValue ( ) ; if ( testScript . containsCaseNo ( caseNo ) ) { current . setCaseNo ( caseNo ) ; } else { String msg = MessageManager . getMessage ( "case.number.error" , caseNo ) + testScript . getCaseNoMap ( ) . keySet ( ) ; throw new TestException ( msg ) ; } current . setTestContextListener ( this ) ; return new OperationResult ( log ) ; }
OperationLog opelog;