123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- 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<= 15; i++ ) {
- Rand3 = Math.floor(Math.random() * (9 - 0));
- npwp = npwp + Rand3.toString();
- }
- this.getdata = function datacollection() {
- data2 = [npwp, randy2]
- }
- }
- const dataset1 = new xdata2();
- 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_004_Modif_IM(){
- Rand1 = Math.floor(Math.random() * (9 - 0));
- dataset.getdata();
- dataset1.getdata();
-
- Delay(3000);
- //Clicks the 'button' button.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeParticipantcomp.shadowroot.textnodeParticipanttextcomp.shadowroot.textnodeAddNew.shadowroot.button.ClickButton();
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Clicks the 'textbox' control.
- Aliases.browser.page1011261948080.textnode3.shadowroot.textnodeTxtsearchkeyword.shadowroot.textbox.Click();
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Sets the text 'Testing SA3483' in the 'textbox' text editor.
- Aliases.browser.page1011261948080.textnode3.shadowroot.textnodeTxtsearchkeyword.shadowroot.textbox.SetText("Testing IM 7642");
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Clicks the 'button' button.
- Aliases.browser.page1011261948080.textnode3.shadowroot.textnodeBtnsearch.shadowroot.button.ClickButton();
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Clicks the 'textnode1' control.
- Aliases.browser.page1011261948080.textnode3.shadowroot.textnode1.Click();
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Performs a single click on the specified button.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeParticipantcomp.shadowroot.textnodeBtnsearchstatus.shadowroot.button.ClickButton();
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Clicks the 'textbox' control.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtsid.shadowroot.textbox.Click();
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Enters '^a' in the 'textbox' object.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtsid.shadowroot.textbox.Keys("^a");
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Sets the text '7654311234456' in the 'textbox' text editor.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtsid.shadowroot.textbox.SetText("D"+data[0]);
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Clicks the 'textbox2' control.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtbusinessregistrationc.shadowroot.textbox2.Click();
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Enters '^a' in the 'textbox2' object.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtbusinessregistrationc.shadowroot.textbox2.Keys("^a");
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Simulates one or several keypresses.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtbusinessregistrationc.shadowroot.textbox2.Keys("MI"+data[0]);
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Clicks the 'textbox2' control.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtnationalregistrationn.shadowroot.textbox2.Click();
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Enters '^a' in the 'textbox2' object.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtnationalregistrationn.shadowroot.textbox2.Keys("^a");
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Simulates one or several keypresses.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtnationalregistrationn.shadowroot.textbox2.Keys("FI"+data[0]);
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Clicks the 'textbox2' control.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtlicenseno.shadowroot.textbox2.Click();
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Enters '^a' in the 'textbox2' object.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtlicenseno.shadowroot.textbox2.Keys("^a");
- //Delays the test execution for the specified time period.
- Delay(3000);
- //Simulates one or several keypresses.
- Aliases.browser.page1011261948080.textnode.shadowroot.textnode.shadowroot.textnodeGeneralinformationcomp.shadowroot.textnodeTxtlicenseno.shadowroot.textbox2.Keys("DI"+data[0]);
- //Delays the test execution for the specified time period.
- Delay(3000);
- }
|