I’m not a dev, and I don’t have any experience the scenarios. Our Dev lead has helped me with some of the scenarios (she’s now on holiday) so I would appreciate some help (if possible) in completing the definitions.

Here is my spec flow scenario:

Scenario Outline: Assign User to workflow Task using AssignWorkflowtask
Given I reset an order with orderLineKey '885615656'
And I assign the workflowTaskId 1 to <userId> for <workflowStatusId>
When I call GetOrder 
Then the order is assigned to <assigneeUserId>
And the order has a <workflowStatusId>
Examples: 
| UserId | workflowStatusId | assigneeUserId |
| 1      | 1                | 1              |
| 2      | 2                | 2              |
| 3      | 3                | 3              |
| 4      | 4                | 4              |

I have automated the Given line as it is used in other scenarios

Below are the definitions for each of the other lines:

[Given(@"I assign the workflowTaskId (.*) to (.*) for (.*)")]
    public void GivenIAssignTheWorkflowTaskIdToFor(int workflowTaskID, string userId, int workflowStatusId)
    {
        ScenarioContext.Current.Pending();
    }


[When(@"I call GetOrder")]
    public void WhenICallGetOrder()
    {
        ScenarioContext.Current.Pending();
    }


[Then(@"the order is assigned to (.*)")]
    public void ThenTheOrderIsAssignedTo(string assigneeUserId)
    {
        ScenarioContext.Current.Pending();
    }

[Then(@"the order has a (.*)")]
    public void ThenTheOrderHasA(int workflowStatusId)
    {
        ScenarioContext.Current.Pending();
    }



Source link https://sqa.stackexchange.com/questions/34588/help-automating-my--scenario

LEAVE A REPLY

Please enter your comment!
Please enter your name here