Closed
Bug 397505
Opened 18 years ago
Closed 18 years ago
reduce number of required attributes in TestCaseRun.create hashmap by using reasonable defaults
Categories
(Testopia :: API, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nparrish, Assigned: gregaryh)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.5) Gecko/20070718 Fedora/2.0.0.5-1.fc7 Firefox/2.0.0.5
Build Identifier: 1.3
according to the API docs, the following are required for TestCaseRun.create:
assignee, build_id, case_id, case_text_version, and run_id
I would suggest that there are quite reasonable default values for some of these:
assignee - default to manager from the run specified by run_id
build_id - default to build_id from run specified by run_id
case_text_version - default to latest text_version for the case specified by case_id
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
| Assignee | ||
Comment 1•18 years ago
|
||
The better way would be to use TestCase.add_to_run which will now be available. This will set all these defaults.
Using TestCaseRun.create still requires at least the case_id, run_id, build_id, and environment_id as these are key fields.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•