/** * Script Name : <b>I18N_MR_From_Android</b> Generated : <b>Nov 28, 2011 6:43:28 AM</b> * Description : Functional Test Script Original Host : WinNT Version 5.1 Build 2600 (S) * * @since 2011/11/28 * @author flvxp */ public void testMain(Object[] args) { WN.useProject(Cfg.projectName); EE.runSQL( new ScrapbookCP().database("sampledb").type("Sybase_ASA_12.x").name("My Sample Database"), GlobalConfig.getRFTProjectRoot() + "/testscript/Workflow/I18N/conf/I18N_ddl.sql"); // MBO EE.dnd("Database Connections->My Sample Database->sampledb->Tables->I18N (dba)"); WN.deployProject( new DeployOption() .startParameter(Cfg.projectName) .mode(DeployOption.MODE_REPLACE) .server("My Unwired Server") .serverConnectionMapping("My Sample Database,sampledb")); // WF WN.createWorkFlow( new WorkFlow() .startParameter(Cfg.projectName) .name("myWF") .option(WorkFlow.SP_SERVER_INIT) .mbo("I18N") .objectQuery("findAll") .from("所有") .to("supAdmin") .cc("supAdmin") .subject("subject") .fromMatchingRule("所有") .body("body") .verifyTo("To,supAdmin", true)); // vpManual("error", 0, Problems.getErrors().size()).performTest(); // WFCustomizer.runTest( new WorkFlowPackage() .startParameter(WN.filePath(Cfg.projectName, Cfg.wfName)) .assignToUser("supAdmin") .unwiredServer("My Unwired Server") .deployToServer("true") .verifyResult("Assigning workflow myWF to supAdmin", true), customTestScript(), "tplan.Workflow.common.StartWF_android", new CallBackMethod() .receiver(WorkFlowEditor.class) .methodName("sendNotification") .parameter( new Email() .unwiredServer("My Unwired Server") .to("supAdmin") .from("所有") .subject("subject") .body("body"))); WFCustomizer.verifyResult(new WFClientResult().data("list_items_count=2")); }
/** * Script Name : <b>S665751_Loneline_in_ResultData_2_Android</b> Generated : <b>Nov 4, 2011 * 7:29:58 AM</b> Description : Functional Test Script Original Host : WinNT Version 5.1 Build * 2600 (S) * * @since 2011/11/04 * @author flvxp */ public void testMain(Object[] args) { WN.useProject(Cfg.projectName); EE.runSQL( new ScrapbookCP().database("sampledb").type("Sybase_txt_12.x").name("My Sample Database"), GlobalConfig.getRFTProjectRoot() + "/testscript/Workflow/Actions/conf/txt_ddl.sql"); EE.runSQL( new ScrapbookCP().database("sampledb").type("Sybase_txt_12.x").name("My Sample Database"), GlobalConfig.getRFTProjectRoot() + "/testscript/Workflow/Actions/conf/txt_data.sql"); // MBO EE.dnd("Database Connections->My Sample Database->sampledb->Tables->txt (dba)"); WN.deployProject( new DeployOption() .startParameter(Cfg.projectName) .mode(DeployOption.MODE_REPLACE) .server("My Unwired Server") .serverConnectionMapping("My Sample Database,sampledb")); // WF WN.createWorkFlow( new WorkFlow() .startParameter(Cfg.projectName) .name("myWF") .option(WorkFlow.SP_CLIENT_INIT)); WorkFlowEditor.dragMbo(Cfg.projectName, "Txt"); WorkFlowEditor.addEditBox( Cfg.projectName, "myWF.xbw", "Start Screen", new WFEditBox().label("id").logicalType("TEXT").newKey("id,int").setDefaultValue("2")); WorkFlowEditor.addMenuItem( "Start Screen", new WFScreenMenuItem() .name("findByPrimaryKey") .type("Online Request") .project(Cfg.projectName) .mbo("Txt") .objectQuery("findByPrimaryKey") .parametermapping("id,id") .defaultSuccessScreen("TxtDetail")); sleep(1); MainMenu.saveAll(); WorkFlowEditor.addEditBox( Cfg.projectName, "myWF.xbw", "TxtDetail", new WFEditBox() .label("text") .logicalType("TEXT") .ifReadonly(true) .key("Txt_content_attribKey") .lines("3")); MainMenu.saveAll(); // vpManual("error", 0, Problems.getErrors().size()).performTest(); // WFCustomizer.runTest( new WorkFlowPackage() .startParameter(WN.filePath(Cfg.projectName, Cfg.wfName)) .assignToUser("supAdmin") .unwiredServer("My Unwired Server") .deployToServer("true") .verifyResult("Assigning workflow myWF to supAdmin", true), customTestScript(), "tplan.Workflow.common.StartWF_android"); WFCustomizer.verifyResult( new WFClientResult().data("id=Txt_content_attribKey,value=format2\r\ntest")); }
/** * Script Name : <b>A671403_Special_Character_andr</b> Generated : <b>Oct 31, 2011 6:47:08 PM</b> * Description : Functional Test Script Original Host : WinNT Version 5.1 Build 2600 (S) * * @since 2011/10/31 * @author flvxp */ public void testMain(Object[] args) { WN.useProject(Cfg.projectName); EE.runSQL( new ScrapbookCP().database("sampledb").type("Sybase_ASA_12.x").name("My Sample Database"), GlobalConfig.getRFTProjectRoot() + "/testscript/Workflow/Actions/conf/AllDT_ddl.sql"); EE.runSQL( new ScrapbookCP().database("sampledb").type("Sybase_ASA_12.x").name("My Sample Database"), GlobalConfig.getRFTProjectRoot() + "/testscript/Workflow/Actions/conf/AllDT_data.sql"); // MBO EE.dnd("Database Connections->My Sample Database->sampledb->Tables->AllDT (dba)"); WN.createObjectQuery( new ObjectQuery() .name("ObjQuery") .startParameter(WN.mboPath(Cfg.projectName, "AllDT")) .parameter("specialchar,string,true,string2") .queryDefinition("SELECT x.* FROM AllDT x WHERE x.string2 = :specialchar") .returnType(ObjectQueryWizard.RT_MULTIPLE)); // WN.deployProject( new DeployOption() .startParameter(Cfg.projectName) .mode(DeployOption.MODE_REPLACE) .server("My Unwired Server") .serverConnectionMapping("My Sample Database,sampledb")); // WF WN.createWorkFlow( new WorkFlow() .startParameter(Cfg.projectName) .name("myWF") .option(WorkFlow.SP_CLIENT_INIT)); WorkFlowEditor.dragMbo(Cfg.projectName, "AllDT"); WorkFlowEditor.addEditBox( Cfg.projectName, "myWF.xbw", "Start Screen", new WFEditBox() .label("str") .logicalType("TEXT") .newKey("str,string") .setDefaultValue("Q\\A")); WorkFlowEditor.addMenuItem( "Start Screen", new WFScreenMenuItem() .name("objQuery") .type("Online Request") .project(Cfg.projectName) .mbo("AllDT") .objectQuery("ObjQuery") .parametermapping("specialchar,str") .defaultSuccessScreen("AllDT")); // vpManual("error", 0, Problems.getErrors().size()).performTest(); // WFCustomizer.runTest( new WorkFlowPackage() .startParameter(WN.filePath(Cfg.projectName, Cfg.wfName)) .assignToUser("supAdmin") .unwiredServer("My Unwired Server") .deployToServer("true") .verifyResult("Assigning workflow myWF to supAdmin", true), customTestScript(), "tplan.Workflow.common.StartWF_android"); WFCustomizer.verifyResult( new WFClientResult().data("found=true|" + "id=AllDT_string2_attribKey,value=Q\\A")); }