Menu

Test with openl tablet

Help
2014-11-13
2014-11-13
  • tablet tablet

    tablet tablet - 2014-11-13

    I have written a decision table. I have only one return RET1
    https://drive.google.com/file/d/0B-XtIZwNPaowS3Vzdkt5YkUwZEZEbndVbEpkU1diNkJhY1NV/view?usp=sharing

    But when I run this ...I get 3 output in the editor ? why ? There should be only one return...see the screenshot below.

    https://drive.google.com/file/d/0B-XtIZwNPaowUWF3TUhJa2RxRk1DMk1zSDVsTENaZTFZdWZB/view?usp=sharing

    I am worried because I'll call isEligible in another table. And I want one return.

    Also, could you please tell why the isEligible table is not working properly ? I am getting same return everytime irrespective of different input.

     

    Last edit: tablet tablet 2014-11-13
    • Olga Lunkova

      Olga Lunkova - 2014-11-13

      Hi,

      You spotted the existing bug with test result display. Webstduio is duplicating test case id before each value (1 in your case) so all the values got shifted. We'll fix the bug in upcoming release. meanwhile, please consider there are extra values in display. So in your case the returned value is '0'. Test case is marked properly as passed/failed and you can double check the return value in Trace.

      From the table I see you have 2 conditions for asset cost and asset class so you will get 1 if asset cost is less than 5m AND asset class is less than 30, otherwise 0. Try input params as 5,000 and 29 to get the return as 1.

      Olga

       

      Last edit: Olga Lunkova 2014-11-13
  • tablet tablet

    tablet tablet - 2014-11-13

    Thanks ...It was very much helpful.

     

    Last edit: tablet tablet 2014-11-13

Log in to post a comment.