Description
whatArgs('createTestCase')
reports the following:
"createTestCase(, , , ,
, [steps=], [precondition
s=], [importance=], [execution=], [order=], [internalid=], [che
ckduplicatedname=], [actiononduplicatedname=], [devKey=])\n createT
estCase: Create a test case\n positional args: testcasename, testsuiteid, testprojectid, authorlogin,\n
summary\n optional args : preconditions, importance, execution, order, internalid,\n
checkduplicatedname, actiononduplicatedname\n \n argument 'steps' will be set wi
th values from .stepsList, \n - when argsOptional does not include a 'steps' item\n - .stepsList can be fi
lled before call via .initStep() and .appendStep()\n "
In particular, it says that [execution=<execution>]
However, when using createTestCase
with this argument (e.g. execution=2
), the test case was not set to 'Automated', as expected, although no error was reported and the test case was successfully created.
After some searching and testing, I found that I could use executiontype
instead of execution
and I would get the result I was expecting. Note that executiontype
is not reported by whatArgs
.
So, it seems likely that 'whatArgsis reporting
executionwhen it should be reporting
executiontype`