-
Notifications
You must be signed in to change notification settings - Fork 12
Exporting Created Services
Roman Jakubco edited this page Jan 11, 2018
·
2 revisions
After you have created your custom service, you can export the executed HTTP requests from that service and the responses in to text files. These text files are created in a Request-Response (RR) pairs format and can be imported into DevTest to create a Virtual Service.
To enable the export feature, it is required to set the system property codesv.export
with the value of the target folder that will contain the files. You can set the property from java code in the desired method or in @Before
or @BeforeClass
methods.
It is also possible to add this property to the gradle or maven execution command line.
Gradle:
gradle -Dcodesv.export=/home/user/export test
Maven:
mvn test -Dcodesv.export=/home/user/export test
For a complete example see: ExportExample