Cannot manually run Gherkin test in suite

BarryTice
Messages : 10
Inscription : lun. mai 09, 2022 7:10 pm

Cannot manually run Gherkin test in suite

Message 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
lblouzon
Messages : 18
Inscription : mer. janv. 19, 2022 4:29 pm

Re: Cannot manually run Gherkin test in suite

Message 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
BarryTice
Messages : 10
Inscription : lun. mai 09, 2022 7:10 pm

Re: Cannot manually run Gherkin test in suite

Message par BarryTice »

Ah, right.
I need a Feature and then a Scenario.

Thanks!
Dernière modification par BarryTice le mar. mai 10, 2022 4:28 pm, modifié 2 fois.
Répondre

Revenir à « Campagnes / Campaigns »