-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
perf-script
355 lines (340 loc) · 24.2 KB
/
perf-script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
#!/usr/bin/env python
import tcms_api
import datetime
TEST_CASES_250 = """
test_client_not_logged_in (tcms.core.contrib.linkreference.tests.TestAddView)
test_with_invalid_url (tcms.core.contrib.linkreference.tests.TestAddView)
test_with_name_longer_than_64_chars (tcms.core.contrib.linkreference.tests.TestAddView)
test_with_valid_url (tcms.core.contrib.linkreference.tests.TestAddView)
test_without_proper_permissions (tcms.core.contrib.linkreference.tests.TestAddView)
test_admin_can_update_other_users (tcms.kiwi_auth.test_admin.TestUserAdmin)
test_non_admin_can_delete_myself (tcms.kiwi_auth.test_admin.TestUserAdmin)
test_non_admin_can_view_single_profile_as_readonly (tcms.kiwi_auth.test_admin.TestUserAdmin)
test_non_admin_cant_change_password_for_others (tcms.kiwi_auth.test_admin.TestUserAdmin)
test_non_admin_cant_delete_others (tcms.kiwi_auth.test_admin.TestUserAdmin)
test_non_admin_cant_see_list_of_all_users (tcms.kiwi_auth.test_admin.TestUserAdmin)
test_user_can_view_their_own_profile (tcms.kiwi_auth.test_profiles.TestProfilesView)
test_user_case_view_profile_of_another_user (tcms.kiwi_auth.test_profiles.TestProfilesView)
test_confirm (tcms.kiwi_auth.tests.TestConfirm)
test_fail_if_activation_key_does_not_exist (tcms.kiwi_auth.tests.TestConfirm)
test_fail_if_activation_key_expired (tcms.kiwi_auth.tests.TestConfirm)
test_set_random_key_forcely (tcms.kiwi_auth.tests.TestForceToSetRandomKey)
test_logout_redirects_to_login_page (tcms.kiwi_auth.tests.TestLogout)
test_logout_then_goto_next (tcms.kiwi_auth.tests.TestLogout)
test_open_registration_page (tcms.kiwi_auth.tests.TestRegistration)
test_register_user_and_activate_by_admin (tcms.kiwi_auth.tests.TestRegistration)
test_register_user_by_email_confirmation (tcms.kiwi_auth.tests.TestRegistration)
test_register_user_sends_signal (tcms.kiwi_auth.tests.TestRegistration)
test_signal_handler_notifies_admins (tcms.kiwi_auth.tests.TestRegistration)
test_set_random_key (tcms.kiwi_auth.tests.TestSetRandomKey)
test_autocreate_new_tag (tcms.management.tests.test_tags.TestTagsWithPermission)
test_get_existing_tag (tcms.management.tests.test_tags.TestTagsWithPermission)
test_autocreate_new_tag (tcms.management.tests.test_tags.TestTagsWithoutPermission)
test_get_existing_tag (tcms.management.tests.test_tags.TestTagsWithoutPermission)
test_product_delete_with_test_plan_wo_email_settings (tcms.management.tests.tests.ProductTests)
test_generate_testing_report (tcms.report.tests.TestingReportTestCase)
test_report_view_loads (tcms.report.tests.TestingReportTestCase)
test_get_form (tcms.testcases.tests.test_form_views.TestForm_AutomatedView)
Verify the view renders the expected HTML
test_case_bug_not_removed_by_passing_case_run (tcms.testcases.tests.test_models.TestCaseRemoveBug)
test_case_run_bug_not_removed_by_missing_case_run (tcms.testcases.tests.test_models.TestCaseRemoveBug)
test_remove_case_bug (tcms.testcases.tests.test_models.TestCaseRemoveBug)
test_remove_case_run_bug (tcms.testcases.tests.test_models.TestCaseRemoveBug)
test_remove_a_component (tcms.testcases.tests.test_models.TestCaseRemoveComponent)
test_remove_plan (tcms.testcases.tests.test_models.TestCaseRemovePlan)
test_remove_tag (tcms.testcases.tests.test_models.TestCaseRemoveTag)
test_send_mail_to_case_author (tcms.testcases.tests.test_models.TestSendMailOnCaseIsUpdated)
test_view_tags_with_permissions (tcms.testcases.tests.test_tags.TestViewCaseTags)
test_view_tags_without_permissions (tcms.testcases.tests.test_tags.TestViewCaseTags)
test_add_and_remove_a_bug (tcms.testcases.tests.test_views.TestAddIssueToCase)
test_update_automated (tcms.testcases.tests.test_views.TestChangeCasesAutomated)
test_update_automated_proposed (tcms.testcases.tests.test_views.TestChangeCasesAutomated)
test_update_manual (tcms.testcases.tests.test_views.TestChangeCasesAutomated)
test_refuse_if_missing_argument (tcms.testcases.tests.test_views.TestCloneCase)
test_show_clone_page_with_from_plan (tcms.testcases.tests.test_views.TestCloneCase)
test_show_clone_page_without_from_plan (tcms.testcases.tests.test_views.TestCloneCase)
test_404_if_case_id_not_exist (tcms.testcases.tests.test_views.TestEditCase)
test_404_if_from_plan_not_exist (tcms.testcases.tests.test_views.TestEditCase)
test_continue_edit_next_confirmed_case_after_save (tcms.testcases.tests.test_views.TestEditCase)
test_continue_edit_next_non_confirmed_case_after_save (tcms.testcases.tests.test_views.TestEditCase)
test_continue_edit_this_case_after_save (tcms.testcases.tests.test_views.TestEditCase)
test_edit_a_case (tcms.testcases.tests.test_views.TestEditCase)
test_return_to_plan_confirmed_cases_tab (tcms.testcases.tests.test_views.TestEditCase)
test_return_to_plan_review_cases_tab (tcms.testcases.tests.test_views.TestEditCase)
test_show_edit_page (tcms.testcases.tests.test_views.TestEditCase)
test_user_in_default_group_sees_comments (tcms.testcases.tests.test_views.TestGetCaseRunDetailsAsDefaultUser)
test_casetags_are_shown_in_template (tcms.testcases.tests.test_views.TestGetCasesFromPlan)
test_disabled_priority_now_shown (tcms.testcases.tests.test_views.TestGetCasesFromPlan)
test_add_a_few_plans (tcms.testcases.tests.test_views.TestOperateCasePlans)
test_add_a_plan (tcms.testcases.tests.test_views.TestOperateCasePlans)
test_list_plans (tcms.testcases.tests.test_views.TestOperateCasePlans)
test_missing_permission_to_add (tcms.testcases.tests.test_views.TestOperateCasePlans)
test_missing_permission_to_remove (tcms.testcases.tests.test_views.TestOperateCasePlans)
test_remove_a_plan (tcms.testcases.tests.test_views.TestOperateCasePlans)
test_show_categories_form (tcms.testcases.tests.test_views.TestOperateCategoryView)
test_update_cases_category (tcms.testcases.tests.test_views.TestOperateCategoryView)
test_add_components (tcms.testcases.tests.test_views.TestOperateComponentView)
test_missing_delete_perm (tcms.testcases.tests.test_views.TestOperateComponentView)
test_remove_components (tcms.testcases.tests.test_views.TestOperateComponentView)
test_show_components_form (tcms.testcases.tests.test_views.TestOperateComponentView)
test_printable_page (tcms.testcases.tests.test_views.TestPrintablePage)
test_page_renders (tcms.testcases.tests.test_views.TestSearchCases)
test_view_loads_fine (tcms.testplans.tests.test_views.TestAddCasesToRuns)
test_view_tags_with_permissions (tcms.testplans.tests.test_views.TestViewPlanTags)
test_view_tags_without_permissions (tcms.testplans.tests.test_views.TestViewPlanTags)
test_open_plans_search (tcms.testplans.tests.tests.PlanTests)
test_plan_attachment (tcms.testplans.tests.tests.PlanTests)
test_plan_details (tcms.testplans.tests.tests.PlanTests)
test_plan_edit (tcms.testplans.tests.tests.PlanTests)
test_plan_history (tcms.testplans.tests.tests.PlanTests)
test_plan_new_get (tcms.testplans.tests.tests.PlanTests)
test_plan_printable (tcms.testplans.tests.tests.PlanTests)
test_plan_printable_without_selected_plan (tcms.testplans.tests.tests.PlanTests)
test_clone_a_plan_by_copying_cases (tcms.testplans.tests.tests.TestCloneView)
test_clone_a_plan_by_setting_me_to_copied_cases_author_default_tester (tcms.testplans.tests.tests.TestCloneView)
test_clone_a_plan_with_default_options (tcms.testplans.tests.tests.TestCloneView)
test_open_clone_page_to_clone_one_plan (tcms.testplans.tests.tests.TestCloneView)
test_refuse_if_given_nonexisting_plan (tcms.testplans.tests.tests.TestCloneView)
test_refuse_if_missing_a_plan (tcms.testplans.tests.tests.TestCloneView)
test_delete_cases (tcms.testplans.tests.tests.TestDeleteCasesFromPlan)
test_missing_cases_ids (tcms.testplans.tests.tests.TestDeleteCasesFromPlan)
test_link_cases (tcms.testplans.tests.tests.TestLinkCases)
test_normal_search (tcms.testplans.tests.tests.TestLinkCases)
test_quick_search (tcms.testplans.tests.tests.TestLinkCases)
test_show_quick_search_by_default (tcms.testplans.tests.tests.TestLinkCases)
test_plan_delete_case (tcms.testplans.tests.tests.TestPlanModel)
test_missing_cases_ids (tcms.testplans.tests.tests.TestSortCases)
test_order_cases (tcms.testplans.tests.tests.TestSortCases)
test_empty_if_no_bugs (tcms.testruns.tests.test_data.TestGetCaseRunsBugs)
test_get_bugs (tcms.testruns.tests.test_data.TestGetCaseRunsBugs)
test_get_comments (tcms.testruns.tests.test_data.TestGetCaseRunsComments)
test_get_empty_comments_if_no_comment_there (tcms.testruns.tests.test_data.TestGetCaseRunsComments)
test_get_stats (tcms.testruns.tests.test_data.TestGetCaseRunsStatsByStatus)
test_get_from_empty_case_runs (tcms.testruns.tests.test_data.TestGetCaseRunsStatsByStatusFromEmptyTestRun)
test_get_bug_ids (tcms.testruns.tests.test_data.TestGetRunBugIDs)
test_get_bug_ids_when_no_bug_is_added (tcms.testruns.tests.test_data.TestGetRunBugIDs)
test_get_bugs_count (tcms.testruns.tests.test_models.TestRunGetBugsCount)
test_get_bugs_count_if_no_bugs_added (tcms.testruns.tests.test_models.TestRunGetBugsCount)
test_send_mail_after_test_run_creation (tcms.testruns.tests.test_models.TestRunGetBugsCount)
test_reports (tcms.testruns.tests.test_report_view.Test_TestRunReportUnconfiguredBugzilla)
test_reports (tcms.testruns.tests.test_report_view.Test_TestRunReportUnconfiguredGitHub)
test_reports (tcms.testruns.tests.test_report_view.Test_TestRunReportUnconfiguredJIRA)
test_update_status_positive_scenario (tcms.testruns.tests.test_update_caserun_status_view.TestUpdateCaseRunStatusView)
test_show_add_cases_to_run (tcms.testruns.tests.test_views.TestAddCasesToRun)
test_404_if_run_not_exist (tcms.testruns.tests.test_views.TestAddRemoveRunCC)
test_add_cc (tcms.testruns.tests.test_views.TestAddRemoveRunCC)
test_refuse_if_missing_action (tcms.testruns.tests.test_views.TestAddRemoveRunCC)
test_refuse_if_user_not_exist (tcms.testruns.tests.test_views.TestAddRemoveRunCC)
test_refuse_to_add_if_missing_user (tcms.testruns.tests.test_views.TestAddRemoveRunCC)
test_refuse_to_remove_if_missing_user (tcms.testruns.tests.test_views.TestAddRemoveRunCC)
test_remove_cc (tcms.testruns.tests.test_views.TestAddRemoveRunCC)
test_404_if_case_run_id_not_exist (tcms.testruns.tests.test_views.TestBugActions)
test_refuse_if_action_is_unknown (tcms.testruns.tests.test_views.TestBugActions)
test_remove_bug_from_case_run (tcms.testruns.tests.test_views.TestBugActions)
test_create_a_new_run (tcms.testruns.tests.test_views.TestCreateNewRun)
test_refuse_if_missing_cases_pks (tcms.testruns.tests.test_views.TestCreateNewRun)
test_refuse_if_missing_plan_pk (tcms.testruns.tests.test_views.TestCreateNewRun)
test_show_create_new_run_page (tcms.testruns.tests.test_views.TestCreateNewRun)
test_404_if_edit_non_existing_run (tcms.testruns.tests.test_views.TestEditRun)
test_edit_run (tcms.testruns.tests.test_views.TestEditRun)
test_404_if_non_existing_pk (tcms.testruns.tests.test_views.TestGetRun)
test_get_a_run (tcms.testruns.tests.test_views.TestGetRun)
test_get_run_without_permissions_to_add_or_remove_tags (tcms.testruns.tests.test_views.TestGetRun)
test_ignore_non_integer_case_run_ids (tcms.testruns.tests.test_views.TestRemoveCaseRuns)
test_nothing_change_if_no_case_run_passed (tcms.testruns.tests.test_views.TestRemoveCaseRuns)
test_redirect_to_add_case_runs_if_all_case_runs_are_removed (tcms.testruns.tests.test_views.TestRemoveCaseRuns)
test_redirect_to_run_if_still_case_runs_exist_after_removal (tcms.testruns.tests.test_views.TestRemoveCaseRuns)
test_remove_case_runs (tcms.testruns.tests.test_views.TestRemoveCaseRuns)
test_search_page_is_shown (tcms.testruns.tests.test_views.TestSearchRuns)
test_clone_a_run (tcms.testruns.tests.test_views.TestStartCloneRunFromRunPage)
test_open_clone_page_by_selecting_case_runs (tcms.testruns.tests.test_views.TestStartCloneRunFromRunPage)
test_refuse_without_selecting_case_runs (tcms.testruns.tests.test_views.TestStartCloneRunFromRunPage)
test_update_selected_case_runs (tcms.testruns.tests.test_views.TestUpdateCaseRunText)
test_get_extra_fields (tcms.xmlrpc.tests.test_serializer.TestQuerySetBasedSerializer)
test_get_m2m_fields (tcms.xmlrpc.tests.test_serializer.TestQuerySetBasedSerializer)
test_get_primary_key_field (tcms.xmlrpc.tests.test_serializer.TestQuerySetBasedSerializer)
test_get_related_object_pks (tcms.xmlrpc.tests.test_serializer.TestQuerySetBasedSerializer)
test_get_values_fields_mapping (tcms.xmlrpc.tests.test_serializer.TestQuerySetBasedSerializer)
test_handle_extra_fields_alias (tcms.xmlrpc.tests.test_serializer.TestQuerySetBasedSerializer)
test_query_m2m_field (tcms.xmlrpc.tests.test_serializer.TestQuerySetBasedSerializer)
test_query_m2m_fields (tcms.xmlrpc.tests.test_serializer.TestQuerySetBasedSerializer)
test_serialize_queryset (tcms.xmlrpc.tests.test_serializer.TestQuerySetBasedSerializer)
test_serialize_queryset_with_empty_querset (tcms.xmlrpc.tests.test_serializer.TestQuerySetBasedSerializer)
testget_values_fields (tcms.xmlrpc.tests.test_serializer.TestQuerySetBasedSerializer)
test_serializer (tcms.xmlrpc.tests.test_serializer.TestXMLSerializer)
test_ensure_password_not_returned (tcms.xmlrpc.tests.test_user.TestUserSerializer)
test_pre_check_product_with_dict (tcms.xmlrpc.tests.test_utils.TestPreCheckProduct)
test_pre_check_product_with_illegal_types (tcms.xmlrpc.tests.test_utils.TestPreCheckProduct)
test_pre_check_product_with_name (tcms.xmlrpc.tests.test_utils.TestPreCheckProduct)
test_pre_check_product_with_no_exist (tcms.xmlrpc.tests.test_utils.TestPreCheckProduct)
test_pre_check_product_with_no_key (tcms.xmlrpc.tests.test_utils.TestPreCheckProduct)
test_pre_check_product_with_number (tcms.xmlrpc.tests.test_utils.TestPreCheckProduct)
test_filter_by_name_and_product_id (tcms.xmlrpc.tests.test_category.TestCategory)
test_filter_by_product_id (tcms.xmlrpc.tests.test_category.TestCategory)
test_filter_non_existing_doesnt_raise (tcms.xmlrpc.tests.test_category.TestCategory)
test_add_component (tcms.xmlrpc.tests.test_component.TestCreateComponent)
test_add_component_with_no_perms (tcms.xmlrpc.tests.test_component.TestCreateComponent)
test_filter_by_name (tcms.xmlrpc.tests.test_component.TestFilterComponents)
test_filter_by_product_id (tcms.xmlrpc.tests.test_component.TestFilterComponents)
test_filter_non_existing (tcms.xmlrpc.tests.test_component.TestFilterComponents)
test_update_component (tcms.xmlrpc.tests.test_component.TestUpdateComponent)
test_update_component_with_no_perms (tcms.xmlrpc.tests.test_component.TestUpdateComponent)
test_update_component_with_non_exist (tcms.xmlrpc.tests.test_component.TestUpdateComponent)
test_filter (tcms.xmlrpc.tests.test_plantype.PlanTypeMethods)
test_filter_by_id (tcms.xmlrpc.tests.test_product.TestFilter)
test_filter_by_name (tcms.xmlrpc.tests.test_product.TestFilter)
test_filter_non_existing (tcms.xmlrpc.tests.test_product.TestFilter)
test_get_tags_with_ids (tcms.xmlrpc.tests.test_tag.Tag)
test_get_tags_with_names (tcms.xmlrpc.tests.test_tag.Tag)
test_build_create (tcms.xmlrpc.tests.test_testbuild.BuildCreate)
test_build_create_with_chinese (tcms.xmlrpc.tests.test_testbuild.BuildCreate)
test_build_create_with_illegal_fields (tcms.xmlrpc.tests.test_testbuild.BuildCreate)
test_build_create_with_no_args (tcms.xmlrpc.tests.test_testbuild.BuildCreate)
test_build_create_with_no_perms (tcms.xmlrpc.tests.test_testbuild.BuildCreate)
test_build_create_with_no_required_fields (tcms.xmlrpc.tests.test_testbuild.BuildCreate)
test_build_create_with_non_existing_product (tcms.xmlrpc.tests.test_testbuild.BuildCreate)
test_build_filter_with_id (tcms.xmlrpc.tests.test_testbuild.BuildFilter)
test_build_filter_with_name_and_product (tcms.xmlrpc.tests.test_testbuild.BuildFilter)
test_build_filter_with_non_exist_id (tcms.xmlrpc.tests.test_testbuild.BuildFilter)
test_build_update (tcms.xmlrpc.tests.test_testbuild.BuildUpdate)
test_build_update_with_multi_id (tcms.xmlrpc.tests.test_testbuild.BuildUpdate)
test_build_update_with_no_perms (tcms.xmlrpc.tests.test_testbuild.BuildUpdate)
test_build_update_with_non_existing_build (tcms.xmlrpc.tests.test_testbuild.BuildUpdate)
test_build_update_with_non_existing_product_id (tcms.xmlrpc.tests.test_testbuild.BuildUpdate)
test_build_update_with_non_existing_product_name (tcms.xmlrpc.tests.test_testbuild.BuildUpdate)
test_add_tag (tcms.xmlrpc.tests.test_testcase.TestAddTag)
test_add_tag_without_permissions (tcms.xmlrpc.tests.test_testcase.TestAddTag)
test_filter_by_product_id (tcms.xmlrpc.tests.test_testcase.TestFilterCases)
test_remove_existing_cc (tcms.xmlrpc.tests.test_testcase.TestNotificationRemoveCC)
test_remove_tag (tcms.xmlrpc.tests.test_testcase.TestRemoveTag)
test_remove_tag_without_permissions (tcms.xmlrpc.tests.test_testcase.TestRemoveTag)
test_update_text_and_product (tcms.xmlrpc.tests.test_testcase.TestUpdate)
test_attach_bug_with_all_fields (tcms.xmlrpc.tests.test_testcasebug.BugCreate)
test_attach_bug_with_chinese (tcms.xmlrpc.tests.test_testcasebug.BugCreate)
test_attach_bug_with_no_perm (tcms.xmlrpc.tests.test_testcasebug.BugCreate)
test_attach_bug_with_no_required_args (tcms.xmlrpc.tests.test_testcasebug.BugCreate)
test_attach_bug_with_non_existing_bug_system (tcms.xmlrpc.tests.test_testcasebug.BugCreate)
test_attach_bug_with_non_existing_case_run (tcms.xmlrpc.tests.test_testcasebug.BugCreate)
test_attach_bug_with_required_args (tcms.xmlrpc.tests.test_testcasebug.BugCreate)
test_detach_bug (tcms.xmlrpc.tests.test_testcasebug.BugDelete)
test_detach_bug_with_no_perm (tcms.xmlrpc.tests.test_testcasebug.BugDelete)
test_detach_bug_with_non_exist_bug (tcms.xmlrpc.tests.test_testcasebug.BugDelete)
test_detach_bug_with_non_exist_id (tcms.xmlrpc.tests.test_testcasebug.BugDelete)
test_get_bugs_for_caserun (tcms.xmlrpc.tests.test_testcasebug.BugFilter)
test_get_bugs_with_non_existing_caserun (tcms.xmlrpc.tests.test_testcasebug.BugFilter)
test_add_comment_with_int (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunAddComment)
test_attach_log (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunAttachLog)
test_attach_log_with_invalid_url (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunAttachLog)
test_attach_log_with_non_existing_id (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunAttachLog)
test_create_with_all_fields (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunCreate)
test_create_with_chinese (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunCreate)
test_create_with_long_field (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunCreate)
test_create_with_no_perm (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunCreate)
test_create_with_no_required_fields (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunCreate)
test_create_with_non_exist_fields (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunCreate)
test_create_with_required_fields (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunCreate)
test_detach_log (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunDetachLog)
test_detach_log_with_non_exist_log (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunDetachLog)
test_doesnt_raise_with_non_existing_id (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunDetachLog)
test_filter_by_id (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunFilter)
test_with_non_exist_id (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunFilter)
test_get_empty_logs (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunGetLogs)
test_get_logs (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunGetLogs)
test_get_logs_with_non_exist_id (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunGetLogs)
test_update_by_ignoring_undocumented_fields (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunUpdate)
test_update_with_no_perm (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunUpdate)
test_update_with_non_existing_assignee (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunUpdate)
test_update_with_non_existing_build (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunUpdate)
test_update_with_non_existing_status (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunUpdate)
test_update_with_single_caserun (tcms.xmlrpc.tests.test_testcaserun.TestCaseRunUpdate)
test_ignores_existing_mappings (tcms.xmlrpc.tests.test_testplan.TestAddCase)
test_add_tag (tcms.xmlrpc.tests.test_testplan.TestAddTag)
test_add_tag_without_permissions (tcms.xmlrpc.tests.test_testplan.TestAddTag)
test_filter_out_all_plans (tcms.xmlrpc.tests.test_testplan.TestFilter)
test_filter_plans (tcms.xmlrpc.tests.test_testplan.TestFilter)
test_remove_case_with_single_plan (tcms.xmlrpc.tests.test_testplan.TestRemoveCase)
test_remove_case_with_two_plans (tcms.xmlrpc.tests.test_testplan.TestRemoveCase)
test_remove_tag (tcms.xmlrpc.tests.test_testplan.TestRemoveTag)
test_remove_tag_without_permissions (tcms.xmlrpc.tests.test_testplan.TestRemoveTag)
test_update_text (tcms.xmlrpc.tests.test_testplan.TestUpdate)
test_add_case (tcms.xmlrpc.tests.test_testrun.TestAddCase)
test_add_case_without_permissions (tcms.xmlrpc.tests.test_testrun.TestAddCase)
test_add_tag (tcms.xmlrpc.tests.test_testrun.TestAddTag)
test_add_tag_without_permissions (tcms.xmlrpc.tests.test_testrun.TestAddTag)
test_create_with_product_version (tcms.xmlrpc.tests.test_testrun.TestProductVersionWhenCreating)
test_create_without_product_version (tcms.xmlrpc.tests.test_testrun.TestProductVersionWhenCreating)
test_remove_tag (tcms.xmlrpc.tests.test_testrun.TestRemoveTag)
test_remove_tag_without_permissions (tcms.xmlrpc.tests.test_testrun.TestRemoveTag)
test_get_me (tcms.xmlrpc.tests.test_user.TestUserFilter)
test_normal_search (tcms.xmlrpc.tests.test_user.TestUserFilter)
test_search_by_groups (tcms.xmlrpc.tests.test_user.TestUserFilter)
test_join_nonexistent_group (tcms.xmlrpc.tests.test_user.TestUserJoin)
test_join_nonexistent_user (tcms.xmlrpc.tests.test_user.TestUserJoin)
test_join_normally (tcms.xmlrpc.tests.test_user.TestUserJoin)
test_update_another_user_password (tcms.xmlrpc.tests.test_user.TestUserUpdate)
test_update_myself (tcms.xmlrpc.tests.test_user.TestUserUpdate)
test_update_myself_without_passing_id (tcms.xmlrpc.tests.test_user.TestUserUpdate)
test_update_other_missing_permission (tcms.xmlrpc.tests.test_user.TestUserUpdate)
test_update_other_with_proper_permission (tcms.xmlrpc.tests.test_user.TestUserUpdate)
test_update_own_password (tcms.xmlrpc.tests.test_user.TestUserUpdate)
test_add_version_with_extra_unrecognized_field (tcms.xmlrpc.tests.test_version.TestAddVersion)
test_add_version_with_missing_argument (tcms.xmlrpc.tests.test_version.TestAddVersion)
test_add_version_with_no_perms (tcms.xmlrpc.tests.test_version.TestAddVersion)
test_add_version_with_non_exist_prod (tcms.xmlrpc.tests.test_version.TestAddVersion)
test_add_version_with_product_id (tcms.xmlrpc.tests.test_version.TestAddVersion)
test_add_version_with_product_name (tcms.xmlrpc.tests.test_version.TestAddVersion)
test_filter_by_name (tcms.xmlrpc.tests.test_version.TestFilterVersions)
test_filter_by_product_id (tcms.xmlrpc.tests.test_version.TestFilterVersions)
test_filter_by_version_id (tcms.xmlrpc.tests.test_version.TestFilterVersions)
test_clean (tcms.testcases.tests.test_views.TestMultipleEmailField)
test_to_python (tcms.testcases.tests.test_views.TestMultipleEmailField)
test_datetime_to_str (tcms.xmlrpc.tests.test_serializer.TestUtilityMethods)
test_parse_bool_value (tcms.xmlrpc.tests.test_utils.TestParseBool)
test_parse_bool_value_with_rejected_args (tcms.xmlrpc.tests.test_utils.TestParseBool)
""".strip().split('\n')[:250]
# ID values at public.tenant.kiwitcms.org
MANAGER = 'your-username-here'
PRODUCT_ID = 31 # Kiwi TCMS
PRODUCT_VERSION = 721 # 6.1-ee
CATEGORY_ID = 46 # --default--
PRIORITY_ID = 10 # P1
NOW = datetime.datetime.now().isoformat().replace('T',' ')[:19]
rpc_client = tcms_api.TCMS().exec
test_plan = rpc_client.TestPlan.create({
'name': 'Performance baseline TP at %s' % NOW,
'text': 'A script is creating this TP and adds TCs and TRs to it to eastablish a performance baseline',
'type': 7, # Performance
'product': PRODUCT_ID,
'product_version': PRODUCT_VERSION,
'is_active': True,
})
test_cases = []
for case in TEST_CASES_250:
test_case = rpc_client.TestCase.create({
'summary': '%s at %s' % (case, NOW),
'product': PRODUCT_ID,
'category': CATEGORY_ID,
'priority': PRIORITY_ID,
'case_status': 2, # CONFIRMED
})
test_cases.append(test_case)
rpc_client.TestPlan.add_case(test_plan['plan_id'], test_case['case_id'])
build = rpc_client.Build.create({
'name': 'b.%s' % NOW,
'description': 'the product build at %s' % NOW,
'product': PRODUCT_ID,
})
test_run = rpc_client.TestRun.create({
'summary': 'Performance baseline at %s' % NOW,
'manager': MANAGER,
'plan': test_plan['plan_id'],
'build': build['build_id'],
})
for case in test_cases:
result = rpc_client.TestRun.add_case(test_run['run_id'], case['case_id'])
if not isinstance(result, list):
result = [result]
for execution in result:
rpc_client.TestExecution.update(execution['id'], {
'status': 4, # PASS
})