問題タブ [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.

0 投票する
1 に答える
736 参照

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?

0 投票する
1 に答える
2357 参照

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 ファイルですべてのシナリオが起動されます。

0 投票する
2 に答える
542 参照

specflow - Specrun - スレッドの遅延

バージョン 1.5.2c#を使用しています。SpecRun

私のルックスの一部はDefault.srprofile次のとおりです。

データベースからのデータを使用しているテストがたくさんあるので、テストは最初にそのデータを作成しています。残念ながら、5 つのスレッドが並行して実行sql deadlock errorされている場合、これらのスレッドが同時にデータを書き込もうとするため、問題が発生することがあります。

スレッド実行の遅延を追加する機会はありますか? スレッドは 5 秒以内に開始する必要があります。