Parameter 'google' is required by @Configuration on method setUp but has not been marked @Optional or defined

后端 未结 4 1576
小鲜肉
小鲜肉 2021-01-06 14:36

There are couple of thread regarding same error but they are not active ,I think last they were active was around 1 yr back so I am opening the new thread .

4条回答
  •  走了就别回头了
    2021-01-06 15:27

    If you want to run only your suite xml file, you need to select your suite file and select Run As-> TestNG Suite.

    However, if you want to select a particular test and use the non test part of your suite file i.e. the suite/listeners/parameters section, then you can set this file as a template xml by going to Project Properties->TestNG -> Template XML File (give absolute path of your testng xml here)

提交回复
热议问题