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 = '\n'+ '\n'+ 'Automation Testing 02\n'+ ''+registrarCode+'\n'+ ''+issuerCode+'\n'+ ''+clientCOde2+'\n'+ 'SEC\n'+ '121\n'+ '1\n'+ 'Automation 02 modify\n'+ 'CLOSE\n'+ 'I\n'+ '\n'+ '' 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."); } } }