12345678910111213141516171819202122232425262728293031323334 |
- function uploadSubsidiary()
- {
- var issuerCode = Project.Variables.code.Value("issuerCode");
- var registrarCode = Project.Variables.code.Value("codeRegister");
- var clientCode = Project.Variables.code.Value("accountclientCodeUpload");
- var establishDate = Project.Variables.createUser.Value("establishedUpload");
- var npwp = Project.Variables.npwp.Value("npwpInstituional1");
-
- var template =
- 'IssuerCode|SubsidiaryName|DateOfEstablishment|PlaceOfEstablishment|LegalDomicile|NPWP|BusinessRegistrationNumber|Address|Country|Province|City|Status|AssetYear|Asset Period|AssetCurrency|TotalAsset|ListedOnIDX|IDXCode|OwnershipPercentage|LembagaJasaKeuangan|LJKType \n'+
- ''+issuerCode+'|'+'PT Automation Indonesia|'+''+establishDate+'|'+'Medan|'+'ID|'+''+npwp+'||'+'Jalan Automation|'+'ID|5|141|1|2020|Q4|IDR|3000000000|N||50.2|N|'
- ;
-
-
- if (aqFile.Create("C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Subsidiary\\subsidiary.csv") == 0)
- {
-
- aqFile.WriteToTextFile("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Subsidiary\\subsidiary.csv", template, aqFile.ctUTF8);
- Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis.");
- }
- else
- {
- aqFile.Delete("C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Subsidiary\\subsidiary.csv");
- aqFile.Delete("C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Subsidiary\\subsidiary.zip");
- if (aqFile.Create("C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Subsidiary\\subsidiary.csv") == 0)
- {
-
- aqFile.WriteToTextFile("C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Subsidiary\\subsidiary.csv", template, aqFile.ctUTF8);
- Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis.");
- }
- }
- }
|