Error on trying to generate of test cases
Hello everyone :)
I was trying the functionality of the Test case Generation, but I got a syntax error on it and I do not understand what is happening. I'm using Kind2 engine in version 2.3.0.
This is my error:
I leave attached the analysis file.
Also, I'm noticed this error in the NuSMV, and I'm not understanding what it means:
Hope you can help :)
Hi @anaisac ,
For your first question, you need to change the requirement ID so that it does not begin with a number. This should help as both Kind 2 and NuSMV do not support numbers as ID's. We will improve this aspect for our next release.
For the second question, the NuSMV option is disabled because the internal variable valid_entity is missing an SMV assignment. To provide an assignment, click the variable in the Variable Mapping tab, then click on the SMV tickbox. A new assignment line should come up, wherein you can provide the variable's assignment as a SMV basic expression.
See screenshot below for how things should look after you are done. As a tip, set the Export Language field in Variable Mapping to SMV, to see how the variable is being flagged as complete.
Best Regards,
Andreas
Hello Andreas :)
Sorry for the late reply.
I didn't knew about the requirements couldn't be just numbers, I've changed that now and it gave me a step forward. Also did the assignment in SMV and is now a progress. However I got stuck with new errors on my side. I will leave both the screenshot of the error + check files for you to see what I am doing wrong.
Using Kind2
TLS_keysSpec_obligation_lus.txt
Using NuSMV
TLS_keysSpec_obligations_smv.txt
Currently I'm just trying out both methods of test case generation, but is there any advantages of choosing one instead of the other?
Hi @anaisac,
The Kind 2 error is related to an issue with incorrect JSON outputs from the tool. The issue is specific to version 2.3.0, so in order to resolve this you need to either 1) switch to a previous version or 2) build the development version of Kind 2 from source. We have already added a note regarding this in the documentation for our next release.
For NuSMV, you are probably using version 2.7.0 which is not supported by our latest public release. We have already extended support for it internally, so future releases will be compatible with it. As such, for the time being you will need to switch to version 2.6.0.
Currently I'm just trying out both methods of test case generation, but is there any advantages of choosing one instead of the other?
The main difference is that the Kind 2 engine allows users to generate tests for requirements that may involve arithmetic operators, whereas NuSMV is restricted to components that only include Boolean variables. If only Boolean variables are involved, both engines can generate tests that achieve full coverage of the input specification. Depending on the input specification, it may still be worth considering both engines' output as the actual tests can vary.
Best,
Andreas
Hi Andreas,
I followed your advice and did the build the development version of Kind2. Now it works. :D Is normal to have the Simulation greyout without any tip on what is necessary to be available?
I also did already the downgrade the NuSMV version to the 2.6.0 and i was able to generate the test and the simulation in here is available. Is it exclusively to work using NuSMV ?
I will consider both engines for my goals, thank you for the detailed explanation :)
Great to know you were able to resolve the issues.
Is normal to have the Simulation greyout without any tip on what is necessary to be available?
Yes, the simulator is not available with Kind 2 in the current release, but this is scheduled to change when our next release comes out. You can still observe and work with the generated tests by using the Export Test Cases option. The manual describes the contents of the exported JSON file in a bit more detail.
Since all your issues have been resolved I will go ahead and close this issue. Please don't hesitate to let us know if you have any further questions.
Best,
Andreas