What is the purpose of setup.xaml and utils in test automation framework

I have created several test cases in a test automation framework project. Is that setup.xaml I have created desktop application opening and few steps. Whether that setup.xaml will execute only once or for each test case.

@Ragul_sharma,

In UiPath Studio’s Test Automation framework, the execution behavior of the setup.xaml file depends on how you’ve configured your test cases and the test settings. Generally, the setup.xaml can be designed to execute either once before all test cases or before each individual test case. Here’s how you can control this behavior:

1. Before All Test Cases (Global Setup)

To execute setup.xaml once before all test cases, you should configure it as a global setup. This is typically done by placing the setup activities in a separate workflow that is called once before the test suite runs.

2. Before Each Test Case (Local Setup)

To execute setup.xaml before each test case, you would include it as part of each test case’s initialization steps. This ensures that setup.xaml is executed every time a test case starts.

LLM helped me to write this but it’s correct as per my knowledge

Thanks,
Ashok :slight_smile:

1 Like

Thank you so much Ashok. Can u share any screenshot or example for creating setup.xaml as global one. Further test cases can be executed from.test manager right

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.