[英]C# specflow how to update the codebehind when new scenario added in feature file
我是 specflow 的新手。 我正在嘗試為我的 asp.net 核心 webapi 測試編寫測試。 我將新場景添加到 existing.feature 文件中。 功能文件在文件 iecs 后面有相應的代碼。 我的新場景沒有在 .cs 文件中生成。 我的 visual studio 2019 中有 specflow 擴展。
。特征:
Scenario: Updating a scoring type to unarchive a valid archived audit, passed in and updated
Given I log in as 'Zoe'
When I do a 'put' for the endpoint 'api/types/1/unarchive' with the following parameters
| Name | Value |
Then I get Status Code 'NoContent' response
但是 my.cs 只顯示舊場景,因此我的測試沒有出現在測試資源管理器中。 如何使用我的新場景生成或更新 .cs 文件?
謝謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.