# Test story for FollowUp Action

**URL:** <https://forum.rasa.com/t/test-story-for-followup-action/52442>\
**Category:** Rasa Open Source\
**Created:** [April 7, 2022, 4:33am UTC](https://forum.rasa.com/t/test-story-for-followup-action/52442 "2022-04-07T04:33:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KHTee](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@KHTee](https://forum.rasa.com/u/KHTee)\
**Post date:** [April 7, 2022, 4:33am UTC](https://forum.rasa.com/t/test-story-for-followup-action/52442/1 "2022-04-07T04:33:13Z")

</div>

I have a custom action that triggers different `FollowupAction()` based on condition. Below are my `stories.yml`, `test_stories.yml` and `failed_test_stories.yml` files. How do I write test for both followup actions?

**stories.yml**

```auto
version: "2.0"

stories:

- story: first_story
  steps:
  - intent: sample_intent
  - action: my_custom_action
  - action: followup_action_1

- story: second_story
  steps:
  - intent: sample_intent
  - action: my_custom_action
  - action: followup_action_2

```

**test\_stories.yml**

```auto
- story: first_test_story
  steps:
  - intent: sample_intent
  - action: my_custom_action
  - action: followup_action_1

- story: second_test_story
  steps:
  - intent: sample_intent
  - action: my_custom_action
  - action: followup_action_2

```

**failed\_test\_stories.yml**

```auto
version: "2.0"
stories:
- story: second_test_story
  steps:
  - intent: sample_intent
  - action: my_custom_action
  - action: followup_action_2 # predicted: followup_action_1

```

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [April 8, 2022, 4:48pm UTC](https://forum.rasa.com/t/test-story-for-followup-action/52442/2 "2022-04-08T16:48:39Z")

</div>

Rasa story testing doesn’t execute forms or actions. I have a [blog post](https://rasa.com/blog/testing-your-rasa-custom-actions-and-forms-using-postman/) on how to do this with Postman and since then I have been using Pytest.

It sounds like your `my_custom_action` method us calling the follow\_up action AND your story shows calling the followup actions? You shouldn’t be doing this in both places. You should consider not calling FollowupAction in your action code and instead setting a featurized slot that the stories/rules can use to specify the followup action.
