1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- function modifyUnclaimedAsset()
- {
- var issuerCode = Project.Variables.code.Value("issuerCode");
- var registrarCode = Project.Variables.code.Value("codeRegister");
- var clientCode1 = Project.Variables.code.Value("accountClientCode3");
- var clientCOde2 = Project.Variables.code.Value("accountClientCode4");
- 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 Deact\\account_sdiuc_deact.sdiuc";
- var zip = "C:\\Users\\vendor_qafusi2\\Documents\\TestComplete 14 Projects\\EBAE Website\\Automation Testing File\\File upload\\Upload Unclaimed Asset Deact\\account_sdiuc.deact.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">CLOSE</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.");
- }
- }
- }
|