14
 Followers
692
 Likes

Test an Action like "Test query" (for unit testing)

Backend
On our radar

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

Created on 4 Jan
Comments (14)
Changed the status to
On 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:

"<PersonalOpinion>

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.

</PersonalOpinion>


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

Great idea indeed.

Changed the category to Backend


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.

Good Ideia

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"

views
1476
Followers
14