function xdata(param) { var randyi = ""; for (ii = 0; ii<= 3; ii++ ) { randy = Math.floor(Math.random() * (9 - 0)); randyi = randyi + randy.toString(); } var ktp = ""; for (i = 0; i<= 12; i++ ) { Rand = Math.floor(Math.random() * (9 - 0)); ktp = ktp + Rand.toString(); } this.getdata = function datacollection() { data = [ktp, randyi] } } const dataset = new xdata(); function xdata2(param1) { var randy2 = ""; for (ii = 0; ii<= 3; ii++ ) { randy3 = Math.floor(Math.random() * (9 - 0)); randy2 = randy2 + randy3.toString(); } var npwp = ""; for (i = 0; i<= 10; i++ ) { Rand3 = Math.floor(Math.random() * (9 - 0)); npwp = npwp + Rand3.toString(); } this.getdata = function datacollection() { data2 = [npwp, randy2] } } const dataset1 = new xdata2(); function xdata3(param2) { var randy3 = ""; for (ii = 0; ii<= 3; ii++ ) { randy4 = Math.floor(Math.random() * (9 - 0)); randy3 = randy3 + randy4.toString(); } var sub = ""; for (i = 0; i<= 9; i++ ) { Rand4 = Math.floor(Math.random() * (9 - 0)); sub = sub + Rand4.toString(); } this.getdata = function datacollection() { data3 = [sub, randy4] } } const dataset2 = new xdata3(); function checkCode() { for (i = 0; i <= 10; i++){ if (Aliases.PTW.dlg.btnOK.Exists) { Aliases.PTW.dlg.btnOK.ClickButton(); let wizardControl2_1 = Aliases.PTW.Wizard2.WizardControl2; let panel = wizardControl2_1.panel2; panel.panelLeft.panelStepLabels.CondicoLabel3.Click(29, 11); Delay(2000) condicoPlainTextBox.SetText(generateCode()); Delay(2000) wizardControl2_1.kryptonGroupButtons.tableLayoutPanel2.flowLayoutPanel2.tableLayoutPanel1.btnFinish.ClickButton(); Delay(15000) }else { break; } } } function generateCode(randyi) { var randyi = ""; for (ii = 0; ii<= 3; ii++ ) { randy = Math.floor(Math.random() * (9 - 0)); randyi = randyi + randy.toString(); } randyi = "T"+randyi; return randyi; } function PATCH_068_Approval(){ Rand1 = Math.floor(Math.random() * (9 - 0)); dataset.getdata(); dataset1.getdata(); dataset2.getdata(); Delay(3000); //Clicks the 'textbox' control. Aliases.browser.page1011261948080.textnode.shadowroot.textnode35.shadowroot.textnode.shadowroot.textbox.Click(); //Delays the test execution for the specified time period. Delay(3000); //Sets the text '12345678' in the 'textbox' text editor. Aliases.browser.page1011261948080.textnode.shadowroot.textnode35.shadowroot.textnode.shadowroot.textbox.SetText(data[1]+data2[1]); //Delays the test execution for the specified time period. Delay(3000); } function PATCH_068_PLACEMENT_BANK_PART_I(){ Rand1 = Math.floor(Math.random() * (9 - 0)); dataset.getdata(); dataset1.getdata(); dataset2.getdata(); Delay(3000); //Clicks the 'textbox2' control. Aliases.browser.page1011261948080.textnode.shadowroot.textnode34.shadowroot.textnode7.shadowroot.textbox2.Click(); //Delays the test execution for the specified time period. Delay(3000); //Sets the text 'Testing 1234' in the 'textbox2' text editor. Aliases.browser.page1011261948080.textnode.shadowroot.textnode34.shadowroot.textnode7.shadowroot.textbox2.SetText("TESTING AT"+data[1]); //Delays the test execution for the specified time period. Delay(3000); //Clicks the 'textbox' control. Aliases.browser.page1011261948080.textnode.shadowroot.textnode34.shadowroot.textnode8.shadowroot.textbox.Click(); //Delays the test execution for the specified time period. Delay(3000); //Sets the text 'Jln. Testing' in the 'textbox' text editor. Aliases.browser.page1011261948080.textnode.shadowroot.textnode34.shadowroot.textnode8.shadowroot.textbox.SetText("Jl. Testing "+data[1]); //Delays the test execution for the specified time period. Delay(3000); //Clicks the 'textbox' control. Aliases.browser.page1011261948080.textnode.shadowroot.textnode34.shadowroot.textnode9.shadowroot.textbox.Click(); //Delays the test execution for the specified time period. Delay(3000); //Sets the text '021-12345678' in the 'textbox' text editor. Aliases.browser.page1011261948080.textnode.shadowroot.textnode34.shadowroot.textnode9.shadowroot.textbox.SetText("021-"+data2[0]); //Delays the test execution for the specified time period. Delay(3000); //Clicks the 'textbox' control. Aliases.browser.page1011261948080.textnode.shadowroot.textnode34.shadowroot.textnode10.shadowroot.textbox.Click(); //Delays the test execution for the specified time period. Delay(3000); //Sets the text '021-98765432' in the 'textbox' text editor. Aliases.browser.page1011261948080.textnode.shadowroot.textnode34.shadowroot.textnode10.shadowroot.textbox.SetText("021-"+data3[0]); //Delays the test execution for the specified time period. Delay(3000); //Delays the test execution for the specified time period. } function PATCH_068_PLACEMENT_BANK_PART_II(){ var today = new Date(); var dd = String(today.getDate()).padStart(2, '0');//date today var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0! var yyyy = today.getFullYear(); today = yyyy+'-'+mm+'-'+dd; //Delays the test execution for the specified time period. Delay(3000); //Clicks the 'textbox' control. Aliases.browser.page1011261948080.textnode.shadowroot.textnode34.shadowroot.textnode12.shadowroot.textnodeInput.shadowroot.textbox.Click(); //Delays the test execution for the specified time period. Delay(3000); //Sets the text '2024-03-28' in the 'textbox' text editor. Aliases.browser.page1011261948080.textnode.shadowroot.textnode34.shadowroot.textnode12.shadowroot.textnodeInput.shadowroot.textbox.SetText(today); //Delays the test execution for the specified time period. Delay(3000); //Enters '[Enter]' in the 'textbox' object. Aliases.browser.page1011261948080.textnode.shadowroot.textnode34.shadowroot.textnode12.shadowroot.textnodeInput.shadowroot.textbox.Keys("[Enter]"); //Delays the test execution for the specified time period. Delay(3000); }