Unit testing for 6.4

1
0
-1

Hello,

I would like to know if Bonita BPM Community 6.4(.0) has any support for unit testing and how I would go about doing them.

Best regards,
Eduardo

1 answer

1
+1
-1
This one is the BEST answer!

It's a complicated answer to give and depends on your definition of Unit Testing.

Simulations are possible which work the processes, so in a sense yes they are available.

If you wanted to test subprocesses this is easily executed by creating shim routines for inputs and outputs...

The only thing is though, you need to execute them in the confines of the engine. Either Studio or a Unit Testing environment separate from the other (Studio and/or production) environments.

So in theory you could create an environment as follows:

Studio for development
Portal for UT (unit testing)
Portal for UAT (user acceptance testing)
Portal for Production

Where you create

processes and subprocesses for all environments, and
shims for starting and executing full processes, and
shims for sub-routines (semi-intelligent processes)

The shims for full processes (where human tasks are involved) would probably have to be built using a third party tool.

I use WinAutomation for basic stuff...works with windows programs too so useful for me. But not quite a real testing tool.

Have a look at this for a useful discussion...

http://programmers.stackexchange.com/questions/116089/is-is-possible-to-unit-test-a-web-forms-site

and these for "web testing"

http://ieunit.sourceforge.net/GettingStarted.html
http://www.seleniumhq.org/
http://www.jsunit.net/
https://www.devexpress.com/Products/HTML5-Testing

Hope this helps,
regards
Seán

PS: If this answer solves your question, please mark as Resolved, thanks.

Notifications