123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- function issuance121()
- {
- var registrarCode = Project.Variables.code.Value("codeRegister");
- var url = "C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Issuance 121\\issuance_121.sti";
- var zip = "C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Issuance 121\\issuance_121.zip";
- var account = Aliases.browser.pageEBaePtKustodianSentralEfekIn.cell70.innerText;
- var account2 = Aliases.browser.pageEBaePtKustodianSentralEfekIn.cell72.innerText;
- var securityCode = Project.Variables.code.Value("instrumenLocalCode");
- var certif12 = Project.Variables.certificate.Value("certif12");
- var certif13 = Project.Variables.certificate.Value("certif13");
- var certif14 = Project.Variables.certificate.Value("certif14");
- var certif15 = Project.Variables.certificate.Value("certif15");
-
- var today = new Date();
- var dd = String(today.getDate()).padStart(2, '0');
- var mm = String(today.getMonth() + 1).padStart(2, '0');
- var yyyy = today.getFullYear();
- today = yyyy + mm + dd;
-
- var template =
- '<Message>\n'+
- '<Record name="data">\n'+
- '<Field name="externalReference">'+certif12+'</Field>\n'+
- '<Field name="participantCode">'+registrarCode+'</Field>\n'+
- '<Field name="account">'+account+'</Field>\n'+
- '<Field name="securityCodeType">LOCAL</Field>\n'+
- '<Field name="securityCode">'+securityCode+'</Field>\n'+
- '<Field name="issuedQuantity">120</Field>\n'+
- '<Field name="settlementDate">'+today+'</Field>\n'+
- '<Field name="issuanceType">ISSUANCE</Field>\n'+
- '<Field name="certificateNumber">'+certif12+'</Field>\n'+
- '<Field name="shareRanges">661-780</Field>\n'+
- '<Field name="shareSeries">B</Field>\n'+
- '<Field name="reason">ISSU</Field>\n'+
- '<Field name="otherMemberCode">9X000</Field>\n'+
- '</Record>\n'+
- '<Record name="data">\n'+
- '<Field name="externalReference">'+certif13+'</Field>\n'+
- '<Field name="participantCode">'+registrarCode+'</Field>\n'+
- '<Field name="account">'+account+'</Field>\n'+
- '<Field name="securityCodeType">LOCAL</Field>\n'+
- '<Field name="securityCode">'+securityCode+'</Field>\n'+
- '<Field name="issuedQuantity">130</Field>\n'+
- '<Field name="settlementDate">'+today+'</Field>\n'+
- '<Field name="issuanceType">ISSUANCE</Field>\n'+
- '<Field name="certificateNumber">'+certif13+'</Field>\n'+
- '<Field name="shareRanges">781-910</Field>\n'+
- '<Field name="shareSeries">B</Field>\n'+
- '<Field name="reason">ISSU</Field>\n'+
- '<Field name="otherMemberCode">9X000</Field>\n'+
- '</Record>\n'+
- '<Record name="data">\n'+
- '<Field name="externalReference">'+certif14+'</Field>\n'+
- '<Field name="participantCode">'+registrarCode+'</Field>\n'+
- '<Field name="account">'+account2+'</Field>\n'+
- '<Field name="securityCodeType">LOCAL</Field>\n'+
- '<Field name="securityCode">'+securityCode+'</Field>\n'+
- '<Field name="issuedQuantity">140</Field>\n'+
- '<Field name="settlementDate">'+today+'</Field>\n'+
- '<Field name="issuanceType">ISSUANCE</Field>\n'+
- '<Field name="certificateNumber">'+certif14+'</Field>\n'+
- '<Field name="shareRanges">911-1050</Field>\n'+
- '<Field name="shareSeries">B</Field>\n'+
- '<Field name="reason">ISSU</Field>\n'+
- '<Field name="otherMemberCode">9X000</Field>\n'+
- '</Record>\n'+
- '<Record name="data">\n'+
- '<Field name="externalReference">'+certif15+'</Field>\n'+
- '<Field name="participantCode">'+registrarCode+'</Field>\n'+
- '<Field name="account">'+account2+'</Field>\n'+
- '<Field name="securityCodeType">LOCAL</Field>\n'+
- '<Field name="securityCode">'+securityCode+'</Field>\n'+
- '<Field name="issuedQuantity">150</Field>\n'+
- '<Field name="settlementDate">'+today+'</Field>\n'+
- '<Field name="issuanceType">ISSUANCE</Field>\n'+
- '<Field name="certificateNumber">'+certif15+'</Field>\n'+
- '<Field name="shareRanges">1051-1200</Field>\n'+
- '<Field name="shareSeries">B</Field>\n'+
- '<Field name="reason">ISSU</Field>\n'+
- '<Field name="otherMemberCode">9X000</Field>\n'+
- '</Record>\n'+
- '</Message>'
-
-
- if (aqFile.Create(url) == 0)
- {
-
- aqFile.WriteToTextFile(url, template, aqFile.ctUTF8);
- Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis.");
- }
- else
- {
- aqFile.Delete(url);
- aqFile.Delete(zip);
- if (aqFile.Create(url) == 0)
- {
-
- aqFile.WriteToTextFile(url, template, aqFile.ctUTF8);
- Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis.");
- }
- }
- }
|