1234567891011121314151617181920212223242526272829303132333435 |
- function uploadSubsidiary()
- {
- var issuerCode = Project.Variables.code.Value("issuerCode");
- var registrarCode = Project.Variables.code.Value("codeRegister");
- var securityCode = Project.Variables.code.Value("instrumenLocalCode");
- var url = "C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Modify Issuance\\modCertif.csv";
- var zip = "C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Modify Issuance\\modCertif.zip";
- var certif9 = Project.Variables.certificate.Value("certif9");
-
- var template =
- 'registrarCode|instrumentCode|certificateNumber|brokerOrCustodianCode|InstrumentSeries\n'+
- ''+registrarCode+'|'+securityCode+'|'+certif9+'|9Z000|B'
- ;
-
-
- 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.");
- }
- }
- }
|