# Execute Test Set from UiPath Studio WorkFlow

**URL:** <https://forum.uipath.com/t/execute-test-set-from-uipath-studio-workflow/525736>\
**Category:** Test Cloud\
**Tags:** question, test-cloud, orchestrator\
**Created:** [March 14, 2023, 4:02am UTC](https://forum.uipath.com/t/execute-test-set-from-uipath-studio-workflow/525736 "2023-03-14T04:02:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![loi.nguyen](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@loi.nguyen](https://forum.uipath.com/u/loi.nguyen)\
**Post date:** [March 14, 2023, 4:02am UTC](https://forum.uipath.com/t/execute-test-set-from-uipath-studio-workflow/525736/1 "2023-03-14T04:02:16Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/4X/c/b/d/cbd780a5ebbb85b9b38a85d383369b8e7568c037.png)  
I’m using UiPath API to execute test set from the UiPath Studio, but I have a problem when using OAuth2 as the image above.

Please help guide me how to get OAuth2Token?  
Thank you so much

---

<div class="post-metadata">

**Author:** ![ABHIMANYU\_THITE1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/abhimanyu_thite1/32/257473_2.png) [@ABHIMANYU\_THITE1](https://forum.uipath.com/u/ABHIMANYU_THITE1)\
**Post date:** [March 14, 2023, 6:18am UTC](https://forum.uipath.com/t/execute-test-set-from-uipath-studio-workflow/525736/2 "2023-03-14T06:18:10Z")

</div>

Hi @loi.nguyen,

To obtain an OAuth2 token, you need to register your application with the service provider, obtain OAuth2 credentials (client ID and client secret), request an authorization code, exchange the authorization code for an access token, and then use the access token to make requests to the service provider’s API.

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [March 15, 2023, 3:33am UTC](https://forum.uipath.com/t/execute-test-set-from-uipath-studio-workflow/525736/3 "2023-03-15T03:33:45Z")

</div>

@loi.nguyen

Welcome to the community

If you are using UiPath api from studio…then directly use orchestrator http request activity which does not need all these

> **[Orchestrator HTTP Request](https://docs.uipath.com/activities/docs/orchestrator-http-request)**
>
> UiPath.Core.Activities.OrchestratorHttpRequestDescriptionPerforms HTTP requests to the Orchestrator API by authenticating under the Robot it is executed on. You can use the GET, POST, PUT, PATCH and DELETE verbs to extract data or manipulate it, and...

Hope this helps

Cheers

---

<div class="post-metadata">

**Author:** ![loi.nguyen](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@loi.nguyen](https://forum.uipath.com/u/loi.nguyen)\
**Post date:** [March 15, 2023, 10:03am UTC](https://forum.uipath.com/t/execute-test-set-from-uipath-studio-workflow/525736/4 "2023-03-15T10:03:47Z")

</div>

Thank you for your help.  
I have registered new app and tried to get its token as the image below:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/d/e/c/dec3dbb28aec1d09df181b2588dca2715b5c4293.png)

But still get error as below:

![image](https://global.discourse-cdn.com/uipath/original/4X/6/2/0/620aa7aceeaea4a596e294cf784331c7e837aac7.png)  
Any advise to me about this error?  
Thank you

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [March 15, 2023, 10:07am UTC](https://forum.uipath.com/t/execute-test-set-from-uipath-studio-workflow/525736/5 "2023-03-15T10:07:23Z")

</div>

@loi.nguyen

This error comes when either the auth url or the access token url is wrong…please check the same

cheers

---

<div class="post-metadata">

**Author:** ![loi.nguyen](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@loi.nguyen](https://forum.uipath.com/u/loi.nguyen)\
**Post date:** [March 15, 2023, 10:09am UTC](https://forum.uipath.com/t/execute-test-set-from-uipath-studio-workflow/525736/6 "2023-03-15T10:09:27Z")

</div>

I do not know how to trigger a test set from Orchestrator. I’m using Test Manager API to call it.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/3/0/f30ba18fedf24567435ca1c5a141a7db90c3ca60.png)

I have an issue relate to getting OAuth2Token, how to get it?

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [March 15, 2023, 10:11am UTC](https://forum.uipath.com/t/execute-test-set-from-uipath-studio-workflow/525736/7 "2023-03-15T10:11:46Z")

</div>

@loi.nguyen

Please check

Official documentation

[https://docs.uipath.com/orchestrator/v0/docs/test-sets#execute-test-set](https://docs.uipath.com/orchestrator/v0/docs/test-sets#execute-test-set)

 ![image](https://global.discourse-cdn.com/uipath/original/4X/b/7/9/b79ce5fa59e469b6972a1aa62f4d2e090c7fa5ee.png)

[![](https://global.discourse-cdn.com/uipath/original/4X/3/f/5/3f5c8f8fa468f57b6dd536a8643ae3cf4812bc17.jpeg "UiPath Test Suite: Execution Orchestration") ](https://www.youtube.com/watch?v=YJkYuvlwkls)

[![](https://global.discourse-cdn.com/uipath/original/4X/5/8/8/5884afd4e2de3c25ef87f2c0f470e3ae86bbb701.jpeg "UiPath- How to schedule Test Execution? |Test Schedule |Test Manager |Test Sets | Test Executions") ](https://www.youtube.com/watch?v=-jEu_93eldM)

cheers

---

<div class="post-metadata">

**Author:** ![loi.nguyen](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@loi.nguyen](https://forum.uipath.com/u/loi.nguyen)\
**Post date:** [March 15, 2023, 10:14am UTC](https://forum.uipath.com/t/execute-test-set-from-uipath-studio-workflow/525736/8 "2023-03-15T10:14:43Z")

</div>

Thank you so much.  
Let me view them.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [March 22, 2023, 3:01pm UTC](https://forum.uipath.com/t/execute-test-set-from-uipath-studio-workflow/525736/9 "2023-03-22T15:01:48Z")

</div>

Closed on March 22, 2023, 3:01pm UTC

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