1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- function modifyUnclaimedAsset()
- {
- var issuerCode = Project.Variables.code.Value("issuerCode");
- Log.Message(issuerCode);
- var registrarCode = Project.Variables.code.Value("codeRegister");
- var clientCode2 = Project.Variables.code.Value("accountClientCode2");
- var instituionalCode = Project.Variables.code.Value("instituionalCode");
- var url = "C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Unclaimed Asset Modify\\account_sdiuc_modif.sdiuc";
- var zip = "C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Unclaimed Asset Modify\\account_sdiuc_modif.zip";
-
- var template =
- '<Message>\n'+
- '<Record name="data">\n'+
- '<Field name="registrarRef">Automation Testing 02</Field>\n'+
- '<Field name="accountParticipantCode">'+registrarCode+'</Field>\n'+
- '<Field name="accountIssuerCode">'+issuerCode+'</Field>\n'+
- '<Field name="accountClientCode">'+clientCode2+'</Field>\n'+
- '<Field name="accountOptionType">SEC</Field>\n'+
- '<Field name="accountType">121</Field>\n'+
- '<Field name="accountOwner">1</Field>\n'+
- '<Field name="accountDescription">Automation 02 modify</Field>\n'+
- '<Field name="accountAction">MODIFY</Field>\n'+
- '<Field name="accountStakeholderType">I</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.");
- }
- }
- }
|