# Paths and Scenario Definition

## **Automation Model**

To establish an initial automation framework, a formal methodology must be followed to ensure an organized and repeatable procedure. This model, aligned with the testing types described earlier, serves as the foundation for implementing automated testing procedures across our clients' processes.

<figure><img src="https://lh7-us.googleusercontent.com/X5Ul1NRKKHiIYHGO62VDHmeIZtbSh8-RVWOBvp5PnQsIensXIRhS1cbEf9dBl1kqZb5lDe_tUpJ-0qGN2OMn445ilbg3J-WzBLIlkPxrQ4lRLoXQbdeXmJXbCiCOE9sd41QWk6F_pu0mzAGYco2oKQ" alt=""><figcaption></figcaption></figure>

## **Templates**

Effective implementation of automated testing relies heavily on comprehensive documentation to uphold process integrity. Here are suggested templates that serve as simple yet integral examples utilized within our company:

**High-Level Process Description**

{% file src="<https://1209025945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCdhOKnkk5ZjJgU3RAhWq%2Fuploads%2F80KnUbbp6BbZwh4r0c9i%2FProcess%20Description%20Template.docx?alt=media&token=dbde5112-1b00-4979-a3ef-199d44178565>" %}

**Process Paths Description**

{% file src="<https://1209025945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCdhOKnkk5ZjJgU3RAhWq%2Fuploads%2F08jJNi4KZGcMgXgmnU9M%2FAutomation%20Modelling%20Template.xlsx?alt=media&token=0827d555-c2f4-4dc9-bb1b-c7af31365d73>" %}

**Scenarios Template**

{% file src="<https://1209025945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCdhOKnkk5ZjJgU3RAhWq%2Fuploads%2FXC6YYHt0VTsDJZ9oetLr%2FScenarios%20template.xlsx?alt=media&token=666aa665-35b3-4c2a-add3-19b3275207dc>" %}

## **Journey Paths on a Process**

When dealing with processes, it becomes important to identify the various paths that the workflow may take. Within an automated testing project, it is advisable to initiate testing by exploring the "Happy Path" within the process. The characteristics of a Happy Path can be identified by examining the following properties on a user journey:

<figure><img src="https://lh7-us.googleusercontent.com/YZqO_LYVy-sx7AiZimeeMQ-0oze1rYP_elqMgUfNt0wuww7WKUj7ePGexMaK2ytZbmo8GzzOXgimor3HIpoxpuzdeSufo2_0n1HMcrGEsPMwBkUROWLngHpCsT2iMo7o5Kz_i_yI-p2UM06qhgoHww" alt=""><figcaption></figcaption></figure>

## **Data Scenarios Configuration**

Paths represent the sequential tasks undertaken to complete an end-to-end journey within a process, defining where the test will occur. Conversely, a scenario encompasses elements that establish a status for the process, driven by specific data sets to achieve desired outcomes. These elements constitute a combination known as a "stimulus" and serve as input for the process to progress towards the expected output.<br>

<figure><img src="https://lh7-us.googleusercontent.com/Yaf8m1T_VxQKQRyqf1OESGqT6RcaNHAyuG_K5bYsGVQ3mFe264rar3OQkQK5LNNeHuxRxXoJ97mHK6Dezqwhnoc79NaUYdMaL9fTzmnywDdmJQzZ8dRymC9TKNFvUKZol6xS4ofeJ14nyTUKyH2p4Q" alt=""><figcaption></figcaption></figure>

The creation and testing of multiple scenarios contribute to the consistency and reliability of our tests, ensuring thorough validation of our automation processes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://processmaker.gitbook.io/quick-start-guides/processmaker-automated-testing/process-testing-automation/paths-and-scenario-definition.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
