में दिए गए/कब/फिर के कई समूह होना ठीक है, मैं गेरकिन में स्वीकृति परीक्षण लिख रहा हूं जहां मैं प्रारंभिक कार्रवाई के आधार पर एक वेब ऐप के यूआई में कई बदलावों की जांच करना चाहता हूं।क्या एक सिंगल गेरकिन परिदृश्य
Scenario: Cancel editing a new text asset
Given the user "[email protected]" is logged in
When the user navigates to "/build/"
And the user clicks the "Sandbox" link
And the user inputs "Test story for canceling editing of a new text asset" for the "title" field
And the user inputs "Test User" for the "byline" field
And the user inputs "My summary, so exciting!" for the "summary" textarea
And the user clicks on "Untitled Section" in the section list
And the user clicks the "Text" icon in the "center" container
And the user inputs the following text in the rich text editor:
"""
Test text for asset. This is cool.
"""
And the user clicks the "cancel" button
Then the following text is not present:
"""
Test text for asset. This is cool.
"""
And the "Image" icon is present
And the "Text" icon is present
When the user refreshes the browser
And the user clicks on "Untitled Section" in the section list
Then the following text is not present:
"""
Test text for asset. This is cool.
"""
When the user opens the asset drawer
Then the following text is not present:
"""
Test text for asset. This is cool.
"""
नोट जब/फिर चरण के कई समूहों, प्रारंभिक कार्रवाई की प्रतिक्रिया के लिए परीक्षण करने के लिए देखते हैं कि: यहाँ एक उदाहरण है। जबकि चरणों के अधिकांश कार्यान्वयन उपसर्ग कीवर्ड को अनदेखा करते हैं, और मुझे पूरा यकीन है कि मैं यह परीक्षण चलाने के लिए प्राप्त कर सकता हूं, क्या अलग-अलग परिणामों का परीक्षण करने का एक बेहतर तरीका है? क्या एक ही सेटअप के साथ कई परिदृश्य लिखना बेहतर है लेकिन अलग-अलग "फिर" कथन?
हम्म पढ़ें। क्या यह संभव है या नहीं, इस सवाल का जवाब नहीं देता है। अब और अधिक Google खोज पर ... – djangofan
संभावित डुप्लिकेट [क्या यह "Givenkin में तब दिया जाता है जब" फिर दिया जाता है?] (Https://stackoverflow.com/questions/12060011/is-it- अस्वीकार्य- टू-राइट-ए-दी-दी-फिर-कब-फिर-टेस्ट-इन-गेरकिन) –
मैं स्वीकार किए गए उत्तर से असहमत हूं; मैंने [मेरा जवाब] जोड़ा [https://stackoverflow.com/a/45245799/634576) जिस प्रश्न के लिए यह एक डुप्लिकेट है। –