5 Replies Latest reply on Sep 26, 2011 11:52 AM by Tihomir Surdilovic

    Process test support in Guvnor

    Miljenko Norsic Newbie

      Hi all,

      I've posted a few questions here that were not answered at all, but I'll give a try with this one, hoping to get answer

       

      I've seen that Guvnor has a pretty decent support for rule testing by test scenarios. One can define test scenario for particular rule, or for a group of rules.

      I'd like to know are there any plans to extend Guvnor for process testing? Because if I want to create a test scenario for process I have to create a JUnit test case for it, and maintain it separately from my process definition in Guvnor.

      I understand that it is not that simple as rule testing, as more test aspects should be considered (every process node should be eligible for test, path testing should take into consideration is the right path chosen, Drools rule testing should be incorporated into this,...).

      But are there any plans for it at all?

       

      Thanks,

      Miljenko

        • 1. Re: Process test support in Guvnor
          Tihomir Surdilovic Master

          Hi Miljenko,

           

          >> I've posted a few questions here that were not answered at all, but I'll give a try with this one, hoping to get answer <<

          Sorry this happened. Can you post the links of your other posts please? We also have a jbpm-users mailing list and als IRC which you may want to try in case you questions here are not getting traction for some reason. Another thing you can do is just "shamelessly" bump your post by adding a comment to it like "hey guys I still have this question" or something which will show it ontop of the list again

           

          You are right, the current Guvnor test scenario support is fairly limited. It for example does not support testing of CEP features and neither for jBPM5 processes. AFAIK there is noone currently involved in extending the Guvnor test scenarios to include fulle process testing support, and you can now write jUnit tests (which you seem to be doing) that pull the package pkg file from guvnor via KnowledgeAgent+changeset.xml and run them in your dev environment.

           

          To try to get this included in future Guvnor versions, best thing would be to raise a Guvnor Jira and have people vote for it.

           

          Hope this helps.

          1 of 1 people found this helpful
          • 2. Re: Process test support in Guvnor
            Miljenko Norsic Newbie

            Hi Tihomir (pozdrav Tihomire )

            thanks for the reply. I'll raise Guvnor Jira, because I think this can be a really useful feature, because process definitions may me semantically correct, but working incorrectly.

             

            Thanks,

            Miljenko

            • 3. Re: Process test support in Guvnor
              Tihomir Surdilovic Master

              Puno pozdrava Miljenko!

              I have been looking into adding a feature to the jBPM web designer which allows you to dynamicall create a junit test from a process you are editing in Guvnor. This is in very beginning stages, so any input/ideas are very welcome. If you'd like to contribute as well, just let us know .

              • 4. Re: Process test support in Guvnor
                Miljenko Norsic Newbie

                Hi Tihomir,

                 

                when do you expect to add it into jBPM web designer, at least in some early beta?

                I cannot make any assumptions about my spare time, but I'll see if I can get some more time to contribute, because at some project stage I might need some out-of-the-box unit testing without writing JUnit test cases

                 

                Thanks,

                Miljenko

                • 5. Re: Process test support in Guvnor
                  Tihomir Surdilovic Master

                  The Web Designer has it's own release cycles, not dependent on jBPM releases. Not sure I can give you an estimate right now as it would be a really rough guess. I think best would be just to watch this Jira: https://issues.jboss.org/browse/JBPM-3366 and I'll update it's status as things get moving.

                   

                  Hope this helps.