function modifyUnclaimedAsset() { var issuerCode = Project.Variables.code.Value("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 = '\n'+ '\n'+ 'Automation Testing 02\n'+ ''+registrarCode+'\n'+ ''+issuerCode+'\n'+ ''+clientCode2+'\n'+ 'SEC\n'+ '121\n'+ '1\n'+ 'Automation 02 modify\n'+ 'MODIFY\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."); } } }