static void Main(string[] args)
        {
            SAPTestHelper.Current.SetSession();
            //Simple workflow
            //DataTable dt = new DataTable();
            //dt.ReadFromExcel(@"c:\temp\simpleWorkFlow.xlsx", "sheet1");
            //DataTable<va01_initial> myTest = new DataTable<va01_initial>(dt);

            //foreach (var data in myTest)
            //{
            //    va01_initial.RunAction(data);
            //}
            //Simple Workflow
            ReportSerializeTest();
            SAPTestHelper.Current.TurnScreenLog(true);
            Global.DataSet = ExcelHelper.Current.Open(@"C:\temp\Test.xlsx").ReadAll();
            Global.CurrentId = 1;
            //initialize report
            Reporter.Reporter reporter = new Reporter.Reporter();
            reporter.initialize("VA01Test");
            SAPBasis mySAPBasis = new SAPBasis();
            VA01 myScript = new VA01();
            BusinessComponent.SD mySD = new BusinessComponent.SD();
            reporter.AddStep("VA01_CreateSalesOrder", "Pass", "VA01_CreateSalesOrder", 1);
            mySD.VA01_CreateSalesOrder("CreateSO_Initial");
            mySD.VA01_CreateSalesOrder("CreateSO_Overview");
            mySD.VA01_CreateSalesOrder("Create_Header_Sales");
            mySD.VA01_CreateSalesOrder("CreateSO_Header_AdditionaldataB");
            mySD.VA01_CreateSalesOrder("CreateSO_Header_Texts");
            mySD.VA01_CreateSalesOrder("CreateSO_Save");
            string DocNo = mySD.DocNo;
            reporter.updateoutputdata("SalesDocNo", DocNo);
            reporter.close();
        }
Exemple #2
0
        public void CreateSalesOrder_Header_Texts()
        {
            var myScreen = new SC_4002_HeaderText();
            var mySAPBasis = new SAPBasis();

            mySAPBasis.TreeActive("wnd[0]/usr/tabsTAXI_TABSTRIP_HEAD/tabpT\\09/ssubSUBSCREEN_BODY:SAPMV45A:4152/subSUBSCREEN_TEXT:SAPLV70T:2100/cntlSPLITTER_CONTAINER/shellcont/shellcont/shell/shellcont[0]/shell", "Z157", "Column1");

            mySAPBasis.TreeSelect("wnd[0]/usr/tabsTAXI_TABSTRIP_HEAD/tabpT\\09/ssubSUBSCREEN_BODY:SAPMV45A:4152/subSUBSCREEN_TEXT:SAPLV70T:2100/cntlSPLITTER_CONTAINER/shellcont/shellcont/shell/shellcont[0]/shell", "Z200", "Column2");
            myScreen.DataBindingV2();
            //myScreen.HeaderText = "Comment123123";
        }
Exemple #3
0
 public void CreateSalesOrder_Header_Sales()
 {
     var myScreen = new SC_4002_Sales();
     var mySAPBasis = new SAPBasis();
     myScreen.DataBindingV2();
     //change order reason
     //myScreen.OrderReason = "C02";
     //Press enter
     mySAPBasis.PressEnter();
     //error handling
     mySAPBasis.statusBarHandling();
 }
Exemple #4
0
 public void CreateSalesOrder_Initial()
 {
     var myScreen = new SC_101();
     var mySAPBasis = new SAPBasis();
     // Create Sales Doc Initial
     mySAPBasis.StartTransction("VA01");
     myScreen.DataBindingV2();
     //myScreen.OrderType = "ZCR";
     //myScreen.SalesOrg = "L8";
     //myScreen.DistributionChannel = "ZZ";
     //myScreen.Division = "ZZ";
     mySAPBasis.PressEnter();
 }
Exemple #5
0
        public void CreateSalesOrder_Overview()
        {
            var myScreen = new SC_4001();
            var mySAPBasis = new SAPBasis();
            // Create Sales Order
            myScreen.DataBindingV2();

            //myScreen.ShipToParty = "110601974";
            //myScreen.SoldToParty = "110601974";
            //myScreen.PONo = "test201508041620";
            //myScreen.PODate = "08/04/2015";
            //myScreen.HPReceiveDate = "08/04/2015";
            ////input material
            //mySAPBasis.SAPTableInputValue("SAPMV45ATCTRL_U_ERF_GUTLAST", 0, 1, "627808-B21");
            ////input target quantity
            //mySAPBasis.SAPTableInputValue("SAPMV45ATCTRL_U_ERF_GUTLAST", 0, 4, "1");
            //Press enter
            mySAPBasis.PressEnter();
            //error handling
            mySAPBasis.statusBarHandling();
            //

            //mySAPBasis.SAPTableInputValue()
        }
Exemple #6
0
 public string CreateSalesOrder_Save()
 {
     var mySAPBasis = new SAPBasis();
     return mySAPBasis.Save();
 }