Background:
The following describes how to use bugfree as recommended by the bugfree designer: first, create a test case, run test case to generate a test result, and run a failed case, you can directly create bugs. The title, steps, and testresult running environment of test case are directly copied to the newly created bug. Therefore, the original intention of the bugfree simple interactive tool is to automate the entire process after the result is obtained by yourself, hope to help people in need
It seems that attachments cannot be uploaded. Leave a message as needed!
Function introduction:
# Function 1: register a case # Description: register a case and return caseidpython regcase. py-T test01-I 'assigned to' # function 2: synchronization bug # Description: # No corresponding bug. If case succeeds, ignore # No corresponding bug. If case fails, create a bug and return the bugid # corresponding bug. If case is successful and the bug is disabled, ignore # corresponding bug. If case is successful and the bug is opened, close this bug # There is a corresponding bug. If case fails and the bug is closed, open the bug # There is a corresponding bug. If case fails and the bug is opened, the bugtitlepython syncbug is updated in count mode. py-c 80756-A passpython syncbug. py-c 80756-A failpython syncbug. py-C 80756-G 125056-A failpython syncbug. py-C 80756-G 125056-a pass-B resolvedbuild
Parameter introduction:
Registration case:
$ python regcase.py -hUsage: regcase.py [options]Options: --version show program's version number and exit -h, --help show this help message and exit -u USERNAME, --username=USERNAME set bugfree username -p PASSWORD, --password=PASSWORD set bugfree password -r projectID, --project-id=projectID set apsara projectID -m moduleID, --module-id=moduleID set galaxy moduleID -t caseTitle, --case-title=caseTitle set case title <required option> -s caseSteps, --case-steps=caseSteps set case steps -a caseStatus, --case-status=caseStatus set case status -y caseType, --case-type=caseType set case type -i assignedTo, --assigned-to=assignedTo set assignedto <required option> -o casePriority, --case-priority=casePriority set case priority -e caseMethod, --case-method=caseMethod set case method -l replyNote, --reply-note=replyNote set reply note -b scriptedBy, --scripted-by=scriptedBy set scripted by -d scriptedDate, --scripted-date=scriptedDate set scripted date -c scriptStatus, --script-status=scriptStatus set script status -w scriptLocation, --script-location=scriptLocation set script location -k caseKeyword, --case-keyword=caseKeyword set case keyword -n casePlan, --case-plan=casePlan set case plan
Synchronization BUG:
$ python syncbug.py -hUsage: syncbug.py [options]Options: --version show program's version number and exit -h, --help show this help message and exit -u USERNAME, --username=USERNAME set bugfree username -p PASSWORD, --password=PASSWORD set bugfree password -r projectID, --project-id=projectID set apsara projectID -m moduleID, --module-id=moduleID set galaxy moduleID -c caseID, --case-id=caseID set caseID <required option> -a caseStatus, --case-status=caseStatus set caseStatus, default:'pass' -e revision, --revision=revision set build revision, default:'N/A' -g bugID, --bug-id=bugID set bugID -s reproSteps, --repro-steps=reproSteps set reproSteps -b resolvedBuild, --resolved-build=resolvedBuild set resolvedBuild