Test an Action like "Test query"

On our radar
Enable to Test an Action giving new input parameters.
Created on 10 May 2010
Comments (31)

So, actually you mean a Unit test?
Be able to configure input parameters and execute an action. Then view all output variables.
I've been wanting this for a long time. Initially I thought of it as an "automatic" web screen that would be created to test, but I find your idea even more productive.
@Joost Landgraf

Yes! Something like unit test would be AWESOME! Would save loads of time!
This is the most liked idea since it was created over 1year and half ago...Any ideas if this will ever get done?
I personally will not implement a large solution in the Agile Platform until there is a feature like this.  Web UI testing solutions are NOT a substitute for unit testing.

Anyone know if this item is at the top of Outsystems backlog?

Yeah, OS staff, please comment on this feature! :)
I'll keep bugging: OS staff, you really ought to comment on this one, when will it see the light of day?
Great idea, would save alot of time for sure!
Sorry for double posting but this idea just hit the 300 MARK!
As for OS staff commenting on this feature, see here: http://www.outsystems.com/forums/discussion/9112/wisdom-of-the-crowds-warning-bit-of-a-rant/

(Why they couldn't have done it here is beyond me, but anyway...)
Merged this idea with 'Actions and Webservices test functionality' (created on 2012-04-26 09:15:53 by Rene Sundermeijer)
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

Merged from 'Actions and Webservices test functionality' (idea created on 2012-04-26 09:15:53 by Rene Sundermeijer), on 2014-01-24 12:51:46 by Gonçalo Borrêga
I like this ... now I use soapUI to test webservices ... but the way soapUI handles webservices is different then how OutSystems handles them

Merged from 'Actions and Webservices test functionality' (idea created on 2012-04-26 09:15:53 by Rene Sundermeijer), on 2014-01-24 12:51:46 by Gonçalo Borrêga
This would be fantastic!!!  I'm disappointed something like this wasn't already implemented.
Most liked idea ever, and still nothing?

Almost 5 years from original post...

It would also be nice for Automated Testing porposes  if we could test a "generic action" by their name/parameters. 

Dunno if its hard to implement.
5 years without an official feedback from OutSystems. Bad... :/
Well, not exactly "without feedback", just not in this thread (see my > 2yo comment above). See here.

I'm curious  what is the status of this? did everybody lose hope and stopped asking when this idea would crystallize or it is in the making?

@Alexei: the problem is that it's both technically and functionally difficult to implement. See the link I posted above for background info.

Please implement this.

Developing an application in Outsystems will be more fun. :D

Great idea, would save a lot of time.

This would really speed up development. You do not have to create a from with a button to test it anymore. Just enter the input variables and test it.

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.

Hey everyone!


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/.

Thank you all,



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.

@Kilian Hekhuis 

Why couldn't those be test parameters as we have in test query? We already have that pattern implemented, so surely that can't be the reason...
I tend to agree with Armando Gomes with the on the fly generation of code and execution. But heck, it does not need to be instant we surely can handle the wait for a few seconds to get that up and running

This would be nice!

@Pedro Coelho

It could, but it's far more complex. Queries don't have true globals, while actions do.

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.