简体   繁体   中英

How to create a testng xml file using jenkins

I am displaying a HTML page to the user where I am providing users the options to select multiple test cases form jenkins. And based on the users selection I need to generate a XML file.Is it possible to generate a XMl based on user selection and If it is then what needs to be done to create XML.Please help

One way would be to take the test names (exact method names) or class names from the user, let Jenkins pass it as arguments to your main method.

In the main you can build the code based on the arguments to invoke testng programmatically .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM