I like to execute the tests which uses the RestFixture from the commandline. I'm also planning to integrate the same in the TFS Build Configuration via Powershell script.
Asked
Active
Viewed 391 times
0

samdinesh
- 147
- 1
- 3
- 9
-
Good for you - is there an actual question in here? – Mathias R. Jessen Jan 17 '17 at 14:46
-
I am not sure how to accomplish this. That is the question. – samdinesh Jan 18 '17 at 07:59
1 Answers
1
I recommend writing a jUnit class annotated to be run with the FitNesseRunner, and indicating Suite/Test to be run. Then you can use either Maven or Ant to run that test from the command line (I believe TFS has out of the box support to run Maven, without the need for any Powershell).
Sample jUnit test, running FitNesse.SuiteAcceptanceTests.SuiteSlimTests.TestScriptTable.
import org.junit.runner.RunWith;
@RunWith(FitNesseRunner.class)
@FitNesseRunner.Suite("FitNesse.SuiteAcceptanceTests.SuiteSlimTests.TestScriptTable")
@FitNesseRunner.FitnesseDir(".")
@FitNesseRunner.OutputDir("./build/fitnesse-results")
public class FitNesseRunnerTest {
}

Fried Hoeben
- 3,247
- 16
- 14
-
I like to run the same in the command line. I'm testing the API's which eventually does a check on the API stored by doing a fiddler capture of all the API. Which avoids load on the API server. – samdinesh Jan 18 '17 at 12:56