問題タブ [specrun]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - How to run Specflow/Specrun feature files with dynamic values
I am very new to Specflow/Specrun and C# programming. I need help in fixing the issue I am facing.
I have a Specrun feature file which queries database. Below is the code of the feature file:
This works absolutely fine. But I want to comment the second line and specify the database name at run time using the default.srprofile file.
I want to execute runtests.cmd
file (from commandline) using default.srprofile file and feed the database name at run time. Is it possible to achieve this?
testing - SpecRun.exe: コマンド ラインから .feature または .playlist ファイルを実行します。
良い一日。いくつかの .feature ファイルがあります。
1.特徴
2.特徴
1.プレイリスト
2.プレイリスト
等
Visual Studio で個別に実行できます。
-デバッグ モードの機能ファイル
-テスト エクスプローラーを使用した任意のプレイリスト。
しかし、コマンドラインからそれらのいずれかを実行する必要がある場合、どうすればよいですか?
SpecRun.exe
実行を使用する場合
SpecRun.exe run %profile%.srprofile "/baseFolder:%~dp0\bin\Debug" /log:specrun.log
これにより、すべての .feature ファイルですべてのシナリオが起動されます。
specflow - Specrun - スレッドの遅延
バージョン 1.5.2c#
を使用しています。SpecRun
私のルックスの一部はDefault.srprofile
次のとおりです。
データベースからのデータを使用しているテストがたくさんあるので、テストは最初にそのデータを作成しています。残念ながら、5 つのスレッドが並行して実行sql deadlock error
されている場合、これらのスレッドが同時にデータを書き込もうとするため、問題が発生することがあります。
スレッド実行の遅延を追加する機会はありますか? スレッドは 5 秒以内に開始する必要があります。