//USEUNIT PauseTest function Stock_Purchase_After() { //Sets a starting point of a test case. aqTestCase.Begin("Check Purchase Stock After"); //Enters text in the text box. Aliases.BitInternational.BitInternational.SearchBox.SetText("2312"); //Simulates one or several keypresses. Aliases.BitInternational.BitInternational.SearchBox.Keys("[Enter]"); //Delays the test execution for the specified time period. Delay(3000); //Purchase DRD var RecordIdx, RecordIdx1, RecordIdx2, RecordIdx3, RecordIdx4, RecordIdx5, RecordIdx6, RecordIdx7, RecordIdx8; if(Project.Variables.SupplierID == "BRA009") { Project.Variables.PurchaseOrderProducts.Iterator.Reset(); for(RecordIdx = 1; RecordIdx <= 3; RecordIdx++) { if(Aliases.BitInternational.BitInternational.ClearAllFilters.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleWarehouseID.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText("GTC"); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Check grid - with or without dashes if(Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumberNo")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); Project.Variables.ProductID = Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumberNo"); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProduct.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); Project.Variables.ProductID = Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber"); } //Posts an information message to the test log. Log.Message(Project.Variables.ProductID, ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber"), ""); //5-44-715-27 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "5-44-715-27") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 0, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 0, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 0); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 0); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 0), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 0), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 0), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 0), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 0)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //5-40-115-43 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "5-40-115-43") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 1, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 1, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 1); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 1); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 1), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 1), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 1), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 1), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 1)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //7-08-120-06 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "7-08-120-06") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 2, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 2, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 2); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 2); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 2), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 2), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 2), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 2), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 2)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } Project.Variables.PurchaseOrderProducts.Iterator.Next(); } } //Purchase USD if(Project.Variables.SupplierID == "EAT002") { Project.Variables.PurchaseOrderProducts.Iterator.Reset(); for(RecordIdx1 = 1; RecordIdx1 < 7; RecordIdx1++) Project.Variables.PurchaseOrderProducts.Iterator.Next(); for(RecordIdx1 = 7; RecordIdx1 <= 8; RecordIdx1++) { if(Aliases.BitInternational.BitInternational.ClearAllFilters.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleWarehouseID.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText("GTC"); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Check grid - with or without dashes if(Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumberNo")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProduct.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } //2-00-120-10 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "2-00-120-10") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 6, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 6, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 6); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 6); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 6), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 6), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 6), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 6), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 6)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //5-18-295-85 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "5-18-295-85") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 7, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 7, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 7); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 7); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 7), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 7), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 7), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 7), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 7)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } Project.Variables.PurchaseOrderProducts.Iterator.Next(); } } //Purchase EDI if(Project.Variables.SupplierID == "UNI004") { Project.Variables.PurchaseOrderProducts.Iterator.Reset(); for(RecordIdx2 = 1; RecordIdx2 < 4; RecordIdx2++) Project.Variables.PurchaseOrderProducts.Iterator.Next(); for(RecordIdx2 = 4; RecordIdx2 <= 6; RecordIdx2++) { if(Aliases.BitInternational.BitInternational.ClearAllFilters.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleWarehouseID.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText("SIA"); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Check grid - with or without dashes if(Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumberNo")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProduct.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } //1-61-018-00 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "1-61-018-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 3, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 3, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 3); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 3); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 3), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 3), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 3), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 3), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 3)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //9-24-020-12 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "9-24-020-12") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 4, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 4, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 4); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 4); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 4), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 4), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 4), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 4), "Order amount"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 4)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //7-20-645-68 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "7-20-645-68") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 5, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 5, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 5); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 5); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 5), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 5), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 5), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 5), "Order amount"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 5)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } Project.Variables.PurchaseOrderProducts.Iterator.Next(); } } //Purchase RW if(Project.Variables.SupplierID == "MOL001") { Project.Variables.PurchaseOrderProducts.Iterator.Reset(); for(RecordIdx3 = 1; RecordIdx3 < 9; RecordIdx3++) Project.Variables.PurchaseOrderProducts.Iterator.Next(); for(RecordIdx3 = 9; RecordIdx3 <= 9; RecordIdx3++) { if(Aliases.BitInternational.BitInternational.ClearAllFilters.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleWarehouseID.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText("GTC"); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Check grid - with or without dashes if(Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumberNo")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProduct.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } //1-56-037-05 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "1-56-037-05") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 8, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 8, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 8); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 8); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 8), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 8), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 8), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 8), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 8)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } Project.Variables.PurchaseOrderProducts.Iterator.Next(); } } //Purchase FH if(Project.Variables.SupplierID == "ALM010") { Project.Variables.PurchaseOrderProducts.Iterator.Reset(); for(RecordIdx4 = 1; RecordIdx4 < 10; RecordIdx4++) Project.Variables.PurchaseOrderProducts.Iterator.Next(); for(RecordIdx4 = 10; RecordIdx4 <= 14; RecordIdx4++) { if(Aliases.BitInternational.BitInternational.ClearAllFilters.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } //Delays the test execution for the specified time period. Delay(500); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleWarehouseID.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText("FH"); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Check grid - with or without dashes if(Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumberNo")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProduct.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } //P-Z8-303-B1 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "P-Z8-303-B1") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 9, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 9, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 9); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 9); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 9), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 9), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 9), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 9), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 9)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //C-NY-010-03 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "C-NY-010-03") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 10, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 10, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 10); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 10); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 10), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 10), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 10), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 10), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 10)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //P-J9-404-30 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "P-J9-404-30") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 11, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 11, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 11); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 11); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 11), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 11), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 11), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 11), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 11)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //R-HX-404-B1 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "R-HX-404-B1") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 12, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 12, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 12); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 12); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 12), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 12), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 12), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 8), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 12)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //R-VS-096-01 // if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "R-VS-096-01") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 13, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 13, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 13); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 13); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 13), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 13), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 13), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 13), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 13)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } Project.Variables.PurchaseOrderProducts.Iterator.Next(); } } //Purchase LGR if(Project.Variables.SupplierID == "CEN001") { Project.Variables.PurchaseOrderProducts.Iterator.Reset(); for(RecordIdx5 = 1; RecordIdx5 < 22; RecordIdx5++) Project.Variables.PurchaseOrderProducts.Iterator.Next(); for(RecordIdx5 = 22; RecordIdx5 <= 25; RecordIdx5++) { if(Aliases.BitInternational.BitInternational.ClearAllFilters.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleWarehouseID.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText("LGR"); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Check grid - with or without dashes if(Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumberNo")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProduct.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } //1-09-744-00 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "1-09-744-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 21, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 21, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 21); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 21); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 21), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 21), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 21), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 21), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 21)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //1-06-688-00 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "1-06-688-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 22, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 22, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 22); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 22); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 22), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 22), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 22), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 22), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 22)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //1-08-143-00 // if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "1-08-143-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 23, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 23, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 23); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 23); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 23), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 23), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 23), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 23), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 23)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //1-99-096-00 // if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "1-99-096-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 24, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 24, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 24); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 24); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 24), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 24), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 24), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 24), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 24)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } Project.Variables.PurchaseOrderProducts.Iterator.Next(); } } //Purchase UCVF if(Project.Variables.SupplierID == "DEC001") { Project.Variables.PurchaseOrderProducts.Iterator.Reset(); for(RecordIdx6 = 1; RecordIdx6 < 15; RecordIdx6++) Project.Variables.PurchaseOrderProducts.Iterator.Next(); for(RecordIdx6 = 15; RecordIdx6 <= 16; RecordIdx6++) { if(Aliases.BitInternational.BitInternational.ClearAllFilters.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleWarehouseID.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText("SDL"); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Check grid - with or without dashes if(Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumberNo")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProduct.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } //1-09-744-00 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "1-09-744-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 21, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 21, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 21); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 21); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 21), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 21), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 21), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 21), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 21)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //1-06-688-00 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "1-06-688-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 22, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 22, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 22); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 22); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 22), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 22), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 22), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 22), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 22)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //1-08-143-00 // if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "1-08-143-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 23, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 23, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 23); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 23); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 23), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 23), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 23), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 23), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 23)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //1-99-096-00 // if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "1-99-096-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 24, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 24, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 24); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 24); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 24), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 24), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 24), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 24), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 24)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } Project.Variables.PurchaseOrderProducts.Iterator.Next(); } } //Purchase Hellwege if(Project.Variables.SupplierID == "BUN001") { Project.Variables.PurchaseOrderProducts.Iterator.Reset(); for(RecordIdx7 = 1; RecordIdx7 < 20; RecordIdx7++) Project.Variables.PurchaseOrderProducts.Iterator.Next(); for(RecordIdx7 = 20; RecordIdx7 <= 21; RecordIdx7++) { if(Aliases.BitInternational.BitInternational.ClearAllFilters.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleWarehouseID.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText("IWS"); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Check grid - with or without dashes if(Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumberNo")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProduct.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); } //L-24-119-00 // if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "L-24-119-00\r\n") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 19, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 19, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 19); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 19); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 19), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 19), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 19), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 19), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 19)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //L-12-455-00 // if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "L-12-455-00\r\n") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 20, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 20, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 20); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 20); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 20), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 20), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 20), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 20), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 20)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } Project.Variables.PurchaseOrderProducts.Iterator.Next(); } } //Purchase Anker if(Project.Variables.SupplierID == "ABC004") { Project.Variables.PurchaseOrderProducts.Iterator.Reset(); for(RecordIdx8 = 1; RecordIdx8 < 17; RecordIdx8++) Project.Variables.PurchaseOrderProducts.Iterator.Next(); for(RecordIdx8 = 17; RecordIdx8 <= 19; RecordIdx8++) { if(Aliases.BitInternational.BitInternational.ClearAllFilters.Exists) { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleWarehouseID.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText("AAS"); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleProduct.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Check grid - with or without dashes //if(Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Exists) //{ ////Simulates a left-button single click in a window or control as specified (relative position, shift keys). ////Aliases.BitInternational.BitInternational.GridTitleProductWithoutDashes.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). //Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. //NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumberNo")); //Performs a single click on the specified button. //Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. //Delay(2000); //Project.Variables.ProductID = Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumberNo"); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). //Aliases.BitInternational.BitInternational.GridTitleProduct.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). //Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. //NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber")); //Performs a single click on the specified button. //Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. //Delay(2000); //Project.Variables.ProductID = Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber"); } //Project.Variables.CheckProductNumber1 = "L-00-030-00"; //L-00-030-00 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "L-00-030-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 16, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 16, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 16); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 16); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 16), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 16), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 16), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 16), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 16)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //L-00-030-00 //if(aqConvert.VarToStr(Project.Variables.ProductID) == aqConvert.VarToStr(Project.Variables.CheckProductNumber1)) //{ ////Simulates a left-button single click in a window or control as specified (relative position, shift keys). ////Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). //Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. //NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. //Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. //Delay(2000); //if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) //{ ////Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 16, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). //Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. //Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). //Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. //Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). //Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). //Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. //Delay(2000); //Enters text in the text box. //Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); //Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 16, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. //Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. //Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). //Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). //Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. //Delay(2000); } //Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 16); //Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 16); //Posts an information message to the test log. //Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 16), ""); //Posts an information message to the test log. //Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 16), "Stock before"); //Posts an information message to the test log. //Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 16), "Stock after"); //Posts an information message to the test log. //Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 16), "Order amount"); //Posts an information message to the test log. //Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); //if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 16)) //{ ////Posts an information message to the test log. ////Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. //Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //L-00-037-00 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "L-00-037-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 17, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 17, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 17); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 17); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 17), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 17), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 17), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 17), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 17)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } //L-05-255-00 if(Project.Variables.PurchaseOrderProducts.Iterator.Value("ProductNumber") == "L-05-255-00") { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridTitleVGS.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.AddFilterButton.Click(); //Enters text in the text box. NameMapping.Sys.BitInternational.BitInternational.FilterStringInputTextbox.SetText(Project.Variables.PurchaseOrderProducts.Iterator.Value("VGS")); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.ApplyButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); if(Aliases.BitInternational.BitInternational.TotalGridItems.contentText == 0) { Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 18, "0"); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } else { //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.GridNavArrow.Click(); //Delays the test execution for the specified time period. Delay(3000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderOptionsButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderShowAllFieldsButton.Click(); //Delays the test execution for the specified time period. Delay(2000); //Enters text in the text box. Aliases.BitInternational.BitInternational.ShowAllFieldsAttributeIdTextbox.SetText("354517"); Project.Variables.PurchaseOrderProducts.$set("Item", "StockAfter", 18, Aliases.BitInternational.BitInternational.AColliBeschikbaarVerkoopResult.contentText); //Performs a single click on the specified button. Aliases.BitInternational.BitInternational.PopUpDoneButton.ClickButton(); //Delays the test execution for the specified time period. Delay(2000); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderBackButton.Click(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.ClearAllFilters.Click(); //Delays the test execution for the specified time period. Delay(2000); } Project.Variables.StockBefore = Project.Variables.PurchaseOrderProducts.Item("StockBefore", 18); Project.Variables.StockAfter = Project.Variables.PurchaseOrderProducts.Item("StockAfter", 18); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("ProductNumber", 18), ""); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockBefore", 18), "Stock before"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("StockAfter", 18), "Stock after"); //Posts an information message to the test log. Log.Message(Project.Variables.PurchaseOrderProducts.Item("Amount", 18), "Order amount"); //Posts an information message to the test log. Log.Message(Project.Variables.StockAfter - Project.Variables.StockBefore, "Stock difference"); if(Project.Variables.StockAfter - Project.Variables.StockBefore == Project.Variables.PurchaseOrderProducts.Item("Amount", 18)) { //Posts an information message to the test log. Log.Message("Stock difference is correct", "", pmHigher); } else { //Posts a warning to the test log. Log.Warning("Stock isn't correct and needs to be checked", "", pmHighest); } } Project.Variables.PurchaseOrderProducts.Iterator.Next(); } } //Sets an end point of a test case. aqTestCase.End(); //Sets a starting point of a test case. aqTestCase.Begin("CheckPdfDocuments"); if(Project.Variables.SupplierID == "CAP005"); else { //Runs a script routine. //PauseTest(); //Runs a keyword test. //KeywordTests.Check_PdfDocuments_Main.Run(); } //Sets an end point of a test case. aqTestCase.End(); //Simulates a left-button single click in a window or control as specified (relative position, shift keys). Aliases.BitInternational.BitInternational.HeaderMainMenuButton.Click(); }