123456789101112131415161718192021222324252627282930313233343536373839 |
- function uploadFreeFloat()
- {
- var registrarCode = Project.Variables.code.Value("codeRegister");
- var instrumenLocalCode = Project.Variables.code.Value("instrumenLocalCode");
- var sre1 = Aliases.browser.pageEBaePtKustodianSentralEfekIn.cell70.innerText;
- var sre2 = Aliases.browser.pageEBaePtKustodianSentralEfekIn.cell72.innerText;
- var sre3 = Aliases.browser.pageEBaePtKustodianSentralEfekIn.cell73.innerText;
- var sre4 = Aliases.browser.pageEBaePtKustodianSentralEfekIn.cell74.innerText;
-
- var template =
- 'kodeBAE|kodeEfek|SRE|type|statusData \n'+
- ''+registrarCode+'|'+''+instrumenLocalCode+'|'+''+sre1+''+'|1|1\n'+
- ''+registrarCode+'|'+''+instrumenLocalCode+'|'+''+sre2+''+'|2|1\n'+
- ''+registrarCode+'|'+''+instrumenLocalCode+'|'+''+sre3+''+'|3|1\n'+
- ''+registrarCode+'|'+''+instrumenLocalCode+'|'+''+sre4+''+'|4|1'
- ;
-
- if (aqFile.Create("C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Free Float Exception\\freefloat.csv") == 0)
- {
-
- aqFile.WriteToTextFile("C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Free Float Exception\\freefloat.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 Free Float Exception\\freefloat.csv");
- aqFile.Delete("C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Free Float Exception\\freefloat.zip");
- if (aqFile.Create("C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Free Float Exception\\freefloat.csv") == 0)
- {
-
- aqFile.WriteToTextFile("C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Free Float Exception\\freefloat.csv", template, aqFile.ctUTF8);
- Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis.");
- }
- }
- }
-
|