Page 1 sur 1

Cannot manually run Gherkin test in suite

Publié : lun. mai 09, 2022 7:37 pm
par BarryTice
Greetings.

I'm investigating how Squash TM works, and am having problems with making a Gherkin-format test run from a suite.

I have created my data in the demo environment, here:
https://demo.squashtest.org/squash/camp ... /test-plan

Test case AL-11 is a Gherkin-format test, and the script checker in the Test Cases section indicates that it is a valid format. However when I add that test case to a suite in the Campaigns section, and I try to manually run the test from the Execution Plan's run icon, I'm told "The execution cannot be run because there is no step to execute."

This is contrary to what the documentation indicates should be possible. https://tm-en.doc.squashtest.com/v3/use ... tests.html indicates that users can manually run cases, and the Xsquash user I am logged in with can run other tests. The documentation does not say that Gherkin tests cannot be run manually, and it does say an error will be generated for manual Gherkin test runs if the Gherkin script is not valid (which certainly suggests that it should run a valid script).

Can anyone suggest what I should be doing differently?

Thanks!

– Barry

Re: Cannot manually run Gherkin test in suite

Publié : mar. mai 10, 2022 9:29 am
par lblouzon
Hello,

It seems that your test case is missing the Scenario-defining keyword: "Scenario".
After adding it, you should be able to execute manually your test case.

Regards,
Lucie

Re: Cannot manually run Gherkin test in suite

Publié : mar. mai 10, 2022 3:52 pm
par BarryTice
Ah, right.
I need a Feature and then a Scenario.

Thanks!