2018-05-16 14-48-39
Nuno Baptista
Test an Action like "Test query" (for unit testing)
Working on it

Be able to create a unit test for a Server / Service / Client (?) / Screen (?) action that shall be executed without developer intervention, for regression purposes.

Changed the status to
On our RadarOn our radar


These comments were recovered from the idea Test an Action like "Test query"; we ignored some comments but we counted all the votes and kept some more vocal comments. We appreciate your feedback.

On 11 May 2010, Nuno Baptista said:

"Be able to configure input parameters and execute an action. Then view all output variables"

On 26 April 2012, Rene Sundermeijer posted an idea that would be merged:

"It would be very helpful and timesaving if a test option for actions and webservices would be integrated in Service Studio. Instead of creating test screens, setup test data and publish espace to create your own test set.

This test action should include:

  • possibility to set input parameters
  • debug mode"

On 18 June 2012, Miguel Seabra Melo age some insights on challenges about this idea, in the following forum: Wisdom of the Crowds (warning: bit of a rant)

On 18 Apr 2013, Miguel Vieira said:

"Sorry for double posting but this idea just hit the 300 MARK! (and still no answer about it or if it is in backlog)"

On 24 October 2017, carl ruhle said:

"It could be samething as a scrapbook, I would like very much if it was possible to test a build in function in this way. Till now what I do is to create a page with what I want to test, publish and test the function, a lot of wasted time is lost."

Continue on next comment.

Continuation from previous comment.

On 17 November 2017, Armando Gomes said:


The reason why I don't think this has been done before is that, unlike Test Query, the platform needs to generate the code (either C# or Java) in order to allow proper execution. As such, while testing a query is somewhat easier, testing a piece of code is not.


With this in mind, I decided to take this path on my Masters Degree Project/Thesis. What I intend to do is a Testing Framework component that "automatically" gets your User Actions and generates the unit test cases to achieve branch coverage. There are other features intended but this is the major one.

If you're willing to spare a few minutes to help me out - since I'm on the R&D phase -, I would appreciate that you leave a feedback on https://armando.outsystemscloud.com/TFQuery/."

On 17 November 2017, Kilian Hekhuis answered:

"The reason why this hasn't been done yet is laid out behind the link I posted above. Basically the problem is you need a full context (site properties, session variables, etc.) which you don't have."

On 21 November 2017, Armando Gomes answered:

"Nobody said it was easy :) And I really like this discussions since we can always learn something new.

What I'm trying to build is something that could help you save some time when doing the tests. It would generate them for you and it would also execute those, given a few possible limitations that I'm not really sure right now.

So, yeah. In the end it could be something like a "test action" but not-so-instant.

Again, any suggestion, feel free to use the link above or firing me a message. I'm more than eager to get views and inputs from other people.

Continue on next comment.

Continuation from previous comment.

On 27 August 2018, Marcel du Preez posted an idea that would be merged:

"It would be nice to be able to, say, right-click a server action, pick a "Test..." option, and be presented with an interface where I could enter the input parameters to a server action (possibly, with type checking and/or lookup values if the input parameter is based on a list of values), and execute it for testing purposes."

On 12 November 2018, Sampsa Sohlman said:

"I think this is utter shame that OutSystems as platform do not have good and supported way to develop unit or integration tests. This ticket has been created "10 May 2010" (...).

So, WE as your OutSystems community members are demanding you to create state of the art way of testing OutSystems logic - 597 votes and counting. This should be your number one priority."

2020-04-21 08-15-30
William Antunes

Great idea indeed.

Changed the category to

Very good to see the unit- / integration- (and functional-) testing is on the radar again. Hope to see it in P12.

would be a great feature to see in next version. A client we worked with always pushed for TDD. This would surely help

It would be nice to have a feature that you are able to test a private action from another  'Test'application module. E.g. an application having a setting 'IsTestApplicatonModule = True'.

It would be nice as well in case of TDD to specify the Test in e.g. a JSON way and that we are able to generate a REST api and Action with the right input parameter and output parameters. 

(and in the future, a coverage about which actions have a TestCase).

A must needed feature .

Definitely a must have feature for a serious development teams.

Hey guys!
This is a great idea indeed!

What about expression testing? Would be so convenient...

In the world, where TDD is widely being used and advocated, it's imperative to get the feature of "Test an action"

With OS moving to AI aiding the developers (predicting what developers want and need), its even possible to predict the different inputs the Unit test will need ( by examining the If structures in the action).

To have a Test Action would be great (just as we can test REST), to have Unit testing on Actions would be greater but to have AI predict our Unit tests would be a gamechanger for OS.

Make it happen for us!

2021-08-30 15-28-09
Leandro Correa

It would be a great timesaving!

It would be awesome!

2021-04-27 10-08-39
Daniel Marques
Merged this idea with 'Instant test area in server actions' (created on 15 Oct 2019 20:12:44 by Laercio Minozzo)

My propose is to implement an instant test area in the server actions like is made in the  Aggregates.   All server actions would have an input to each input variable, that when they are filled the output variables fields (disabled) will be filled with the result of server action execution. This will help to test the server actions logic more fast.

This comment was:
- originally posted on idea 'Instant test area in server actions' (created on 15 Oct 2019 by Laercio Minozzo)
- merged to idea 'Test an Action like "Test query" (for unit testing)' on 21 Nov 2019 14:40:19 by Daniel Marques

Hi there is already an idea (well there's actually quite a few) for this. https://www.outsystems.com/ideas/6166/test-an-action-like-test-query-for-unit-testing

Be sure to up-vote it!

This comment was:
- originally posted on idea 'Instant test area in server actions' (created on 15 Oct 2019 by Laercio Minozzo)
- merged to idea 'Test an Action like "Test query" (for unit testing)' on 21 Nov 2019 14:40:19 by Daniel Marques

nice idea, eagerly waiting for this feature to be implemented..

Definitely a must have feature for a serious development teams

This adds sooooo much value for Devs


2020-10-05 09-43-29

Yes and very effective for Unit testing

Great idea indeed.

This idea is awesome, it would help a lot for integration tests.

this is really needed. Salesforce provide this with test apex..

Would love to see that happen

Much needed. I believe OS team are implementing it!

+1 and liked, it should be there. Others (Low code ) already providing this type of functionality.

+1 many more functionalities can be implemented on the same construct.

2021-02-16 08-16-49
Shweta Gedam

It would be great if we can have such facilty. Great

2019-11-12 17-31-26
Justin James
Merged this idea with 'Producer Module Server action testing' (created on 27 Nov 2020 10:43:49 by Raghavendra Kuratti)

Producer module server action testing with dummy input parameters. It will be help before consuming in to main(Consumer) modules.

This comment was:
- originally posted on idea 'Producer Module Server action testing' (created on 27 Nov 2020 by Raghavendra Kuratti)
- merged to idea 'Test an Action like "Test query" (for unit testing)' on 28 Nov 2020 17:44:30 by Justin James

Really a value add , if gets implemented in next version

It's really helpful 

This will be really useful when its ready & released

Yes, this is good idea so we will find the test output without publishing the application and this is great full for those who create the layer for the Application like core, core widget, main module, etc.

Yah, Its an Good Idea.

Unit testing is surely one of the weak points of OS development. I would really love the possibility to run an action individually from Service Studio.

This is a great idea, it would be very useful to perform unit tests faster

Great idea!

Great idea!

2021-07-02 07-01-25
Amit Jain

It would be a great idea. It would make life easier for developers. And it definitely saves time for Unit testing.

Yes, this feature should be include in Service Studio.

Great Idea!!

Changed the status to
Working on it
expected delivery in Q4 2022

We are actively researching this area. Currently, we do not have a very clear idea about a timeline for delivery hence the expected date point out to the end of 2022. We will update the idea as we progress.

Good Idea!!

I hope this idea is implemented

It is very informative and helpful to me.

I would add to the idea:

- Option to mock dependent actions with custom values, when executing these tests.

Automated testing functionality is urgently needed. Any idea when it will be available? I have to start with automated testing now. Any suggestion / experiences with work-arounds till then?

Moe testing is always a great step towards delivering great products ! 

Hope this gets implemented ! 

Project Neo Anyways does the regression Testing. Excited to Have a look into how it works!!

It's a excelent idea.

Additionally, one or more value scenarios for the input parameters could be filled in with the respective output parameter values (for an acceptance test). So it would be possible that in the deploys (pre-deploy) these tests would be executed and a report would be displayed confirming if the deploy can be executed or not.