def test_create_iter2_workitems(self, wi_name): r = helpers.create_workitem( title=wi_name, spaceid=dynamic_vars.spaceid, witype=workitem_constants.witypetask, iterationid=dynamic_vars.iteration_names_to_ids[ workitem_constants.iteration_2]) ##Validate the response assert r.status_code == 201
def test_create_backlog_tasks(self, wi_name): r = helpers.create_workitem(title=wi_name, spaceid=dynamic_vars.spaceid, witype=workitem_constants.witypetask) ## Add a couple of comments to the workitem helpers.add_workitem_comment(dynamic_vars.wi_names_to_links[wi_name], workitem_constants.comment_1_text) helpers.add_workitem_comment(dynamic_vars.wi_names_to_links[wi_name], workitem_constants.comment_2_text) ## Add a few labels to the workitem helpers.add_workitem_label( workitem_link=dynamic_vars.wi_names_to_links[wi_name], label_id=[ dynamic_vars.labels_names_to_ids[workitem_constants.label_1], dynamic_vars.labels_names_to_ids[workitem_constants.label_2], dynamic_vars.labels_names_to_ids[workitem_constants.label_3] ])
def test_create_backlog_experiences(self, wi_name): r = helpers.create_workitem(title=wi_name, spaceid=dynamic_vars.spaceid, witype=workitem_constants.witypeexperience) ## Add a couple of comments to the workitem helpers.add_workitem_comment(dynamic_vars.wi_names_to_links[wi_name], workitem_constants.comment_1_text) helpers.add_workitem_comment(dynamic_vars.wi_names_to_links[wi_name], workitem_constants.comment_2_text) ## Add a label to the workitem try: unused = dynamic_vars.labels_names_to_ids[ workitem_constants.label_5] except KeyError: r, dynamic_vars.labels_names_to_ids[ workitem_constants.label_5] = helpers.add_workitem_label( workitem_link=dynamic_vars.wi_names_to_links[wi_name], label_text=workitem_constants.label_5, label_id=None) r.raise_for_status()
def test_create_backlog_scenarios(self, wi_name): r = helpers.create_workitem(title=wi_name, spaceid=dynamic_vars.spaceid, witype=workitem_constants.witypescenario) ## Add a couple of comments to the workitem helpers.add_workitem_comment(dynamic_vars.wi_names_to_links[wi_name], workitem_constants.comment_1_text) helpers.add_workitem_comment(dynamic_vars.wi_names_to_links[wi_name], workitem_constants.comment_2_text) ## Add a label to the workitem. If label doen't exist, add one try: unused = dynamic_vars.labels_names_to_ids[ workitem_constants.label_1] except KeyError: r, dynamic_vars.labels_names_to_ids[ workitem_constants.label_1] = helpers.add_workitem_label( workitem_link=dynamic_vars.wi_names_to_links[wi_name], label_text=workitem_constants.label_1, label_id=None) r.raise_for_status()