I am trying to follow the way as mentioned in wiki page. I am not aware of Json. Just followed wiki page https://wiki.jenkins.io/display/JENKINS/Tests+Selector+Plugin
Have few queries . How to link your test case (either in java or python) to testcase mentioned in properties file? I plan to do it for python testcases.
Below is my properties file:
tests=
[{"enabled":true,"owner":"name","testgroup":"A","testcase":"NewTest.testCase1"},{"enabled":true,"owner":"name","testgroup":"B","testcase":"NewTest.testCase2"}]
enableField=enabled
groupBy=testgroup
fieldSeparator=.
showFields=testsuite,testcase
multiplicityField=multiplicity
NewTest is my class with testCase1 and testCase2 as methods.
In Jenkins , its listing as Null.NewTest.testCase1
.
Obviously i missed something. Can someone explain how it works internally? how the class methods get called without explicitly creating class instance?
答案 0 :(得分:0)
您需要指定一个测试套件。 在您的情况下" testsuite":" NewTest"," testcase":" testCase1"