阅读背景:

如何读取excel文件替换xml中的字符串并写入新文件java

来源:互联网 

A project requires to test web service with the same methods but different host name. I am using Ready API where project is saved as xml file. As there are hundreds of client with different host names that I need to test the related web service. So I am thinking to batch replace host names in the project xml file. Here is the flow: compile a long list of host and other parameters in a excel file, read a row (URL, ID etc.) in the excel file and replace the corresponding string in the xml file and write the xml file with the host name as file name. Then the next row to the same xml file and write the xml file till the end of the excel file in Java or groovy. A project requires to test web service with the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: