I have created a test case with using the activity of “Open Browser”.
Now my question is I want to create multiple test cases but I just want that the open browser activity should be call only once,
I don’t have to write Open Browser activity for every test case. I want my automation to open the browser only once and run all the test cases in it; Is it possible?
@Shabanam_Mulla
In UiPath, you can create reusable components to avoid duplicating the “Open Browser” activity in multiple test cases. You can achieve this by creating a separate workflow or sequence that contains the “Open Browser” activity, and then invoke that workflow or sequence in each of your test cases.
- Create Reusable Workflow:
- Create a new workflow or sequence (e.g., “OpenBrowserWorkflow.xaml”).
- Place the “Open Browser” activity inside this workflow.
- Define Input and Output Arguments:
- If needed, define input arguments for dynamic inputs (e.g., URL, browser type).
- Define output arguments if necessary.
- Invoke Workflow in Test Cases:
- In each test case, use the “Invoke Workflow” activity.
- Specify the workflow file as “OpenBrowserWorkflow.xaml.”
- Provide input arguments as needed.
Thank You so much for your response
Thank You So much for Your Response
@Shabanam_Mulla
got a idea about that mark it as solution
thanks
Thank you so much!!!
1 Like