📜  如何通过 testng.xml 在测试用例中传递参数 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:16.540000             🧑  作者: Mango

代码示例1
We use @Parameter annotation.

Let's say we create a class and we put the @Parameter annotation with 
"param-name".

Then we open testng.xml file. We create a suite, it takes also parameter name
attribute. We provide a parameter name which we named in class and we provide
value what we want to pass.