29
Views
7
Comments
Solved
Is there a built-in quick test feature for Server Actions in OutSystems?

After implementing a Server Action to verify the OnBeforeRequest logic of a REST API, I want a quick way to test that Server Action without creating screens, buttons, or UI widgets. Does OutSystems 11 provide any built‑in feature to quickly test a Server Action?

 


Test_API.png
2024-10-05 13-30-20
Huy Hoang The
Solution

Hi Tam,

U can use Timer to quick call the RestAPI by click "run now" on your portal/service center. But i think u should use screen, UI to set the input params for your API.

Hope this helps!

UserImage.jpg
Tâm Phan

Thanks you so much expert Huy

2026-06-20 17-43-43
Sherif El-Habibi
Champion
Solution

Hello,

I think that can be hard to achieve if we are talking about a direct way. You would need to create a dummy screen and call that REST API action inside a Data action, with static inputs.

If you want the long way, which is more of a brainstorming approach, you can create a dummy entity, a process, and a timer. The timer would have a server action that creates a dummy entity record when the module is published. As a result, the process runs, and inside it there is an automatic activity that calls this API method.

It is a long approach, but it works with a single click. It may sound not very elegant, but it allows you to test it for some duration. After that, you can do purging and delete this entity from the database.

2024-10-05 13-30-20
Huy Hoang The
Solution

Hi Tam,

U can use Timer to quick call the RestAPI by click "run now" on your portal/service center. But i think u should use screen, UI to set the input params for your API.

Hope this helps!

UserImage.jpg
Tâm Phan

Thanks you so much expert Huy

2016-04-22 00-29-45
Nuno Reis
 
MVP

Hello.

That is one of the most requested Ideas. Add your vote and maybe some day we will have it.

https://www.outsystems.com/ideas/6166/test-an-action-like-test-query-for-unit-testing/


UserImage.jpg
Jayaprakash Ramesh
AI Generated

hello tam, 

Yes. OutSystems 11 does provide a built-in way to test a Server Action without creating any UI. You can right-click the Server Action in Service Studio and choose Test (or Debug Server Action). This opens a dialog where you can provide input parameters and execute the action directly. It’s the quickest way to validate logic like OnBeforeRequest without screens, buttons, or widgets.

thankyou ,
This answer was AI-generated. Please read it carefully and use the forums for clarifications
2021-09-06 15-09-53
Dorine Boudry
 
MVP

care to share some screenshots of this feature ? It's the first I heard of it.

2020-04-15 19-07-26
Eduardo Rodrigues
AI Generated


Hi @Dorine Boudry, good catch — you’re right to question that.

After double-checking, it looks like that answer was AI-generated and the description is misleading. There isn’t a specific built-in feature in Service Studio to “test” a Server Action directly without any UI, yet (Idea).

In practice, the usual approach is to call the Server Action from a simple screen, a temporary button, or through a timer or exposed REST endpoint for testing purposes.

Thanks for pointing it out — it’s a good reminder to always validate AI-generated responses.

This answer was AI-generated. Please read it carefully and use the forums for clarifications
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.