Azure DevOps Exporter
Azure DevOps Exporter is a tool used to export test cases into Azure Test Plans.
Features:
-
Create and update Test Cases. VIVIDUS scenarios are mapped to Azure DevOps Test Cases by using
testCaseId
meta tags. -
Create automated Test Runs.
Azure DevOps Export Properties
The properties marked with bold are mandatory. |
Property | Default value | Acceptable values | Description |
---|---|---|---|
|
string |
Path to directory with test execution JSON results. The path is managed by the Please make sure that the |
|
|
string |
The name of the Azure DevOps organization. |
|
|
string |
Project ID or project name. |
|
|
string |
The area of the product which a test case is associated with. If the Area name is inherited from the Project name in AzureDevOps this property should be empty. You can check this by making a request for any Work Item within current Area and checking if the |
|
|
|
|
The scenario part to export into |
|
|
|
Whether to create test run. In Azure DevOps only Test Cases with associated automation can be included into automated Test Run. The associated automation is automatically added by exported only for Automated Test Cases. Attempts to include Manual Test Case into automated Test Run will fail the execution process. |
|
string |
The test run name. This property is mandatory when the test run creation is enabled, see |
|
|
number |
The ID of Azure DevOps Test Plan that the Azure DevOps Test Run belongs to. In Azure DevOps Test Plan is used to group individual Test Cases and Test Suites, in their turn Test Suites are used to group Test Cases into separate testing scenarios within a single Test Plan and also may include child Test Suites. Azure DevOps allows to have an individual Test Case to be included into several Test Suites and into the Test Plan, BUT this is not supported by the exporter which requires the Test Case to be linked to either Test Plan or only one Test Suite, the export process fails if this condition is not met. This property is mandatory when the test run creation is enabled, see The ID can be found by opening appropriate Azure DevOps Test Plan in "Test Plans" and copying number value of the |
Authentication properties
Property | Acceptable values | Description |
---|---|---|
azure-devops.username |
|
Username from Azure DevOps |
azure-devops.password |
|
Personal access token |
Scenario Meta Attributes
Name | Example | Description |
---|---|---|
|
|
Map scenario to Azure DevOps test case in 1 to 1 relation |
|
|
Skip test case while exporting |
Test Case Types
This separation of automated and manual test cases by using special keywords is specific to VIVIDUS.
Automated Test Cases
Any scenario that doesn’t correspond to the manual test case rules is considered as automated test case.
Scenario: Verify link
Meta: @testCaseId TEST-231
Given I am on page with URL `${vividus-test-site-url}/links.html`
When I wait until the page has the title 'Links'
Then number of elements found by `<locator>` is equal to `1`
Examples:
|locator |
|By.linkUrl(#ElementId) |
|By.linkUrlPart(Element) |
|By.linkText(Link to an element)|
Scenario: Verify link
Meta: @testCaseId TEST-566
!-- Step: Open main app page
!-- Step: Wait for page with title is loaded
!-- Step: Verify number of links
!-- Data: * link url is '#ElementId'
!-- * link url part is 'Element'
!-- * link text is 'Link to an element'
!-- Result: The number of links for all locators is equal to 1
Given I am on page with URL `${vividus-test-site-url}/links.html`
When I wait until the page has the title 'Links'
Then number of elements found by `<locator>` is equal to `1`
Examples:
|locator |
|By.linkUrl(#ElementId) |
|By.linkUrlPart(Element) |
|By.linkText(Link to an element)|
Manual Test Cases
-
Scenario is considered as
Manual Test Case
if all of its lines start with!--
prefix. -
The
Manual Test Case
step must start withStep:
used to specify action to perform and can optionally containData:
andResult:
for specifying action data and action expected result respectively. -
The
Manual Test Case
step parts are allowed to have multiple lines. -
The
JBehave Keywords
values (e.g.Given
,When
,Then
…) on new lines not prefixed withStep:
,Data:
orResult
must be escaped with-
sign.
Scenario: Buy an item
Meta: @testCaseId TEST-435
!-- Step: Go to the test item with the following id
!-- Data: 39914061
!-- Result: The current stock is 1
!-- Step: Add the item to the shopping cart
!-- Result: Shopping cart now displays one 39914061 item and no items in stock
!-- Step: In the backoffice app update the stock to 0 on item
!-- Step: Back in the browser, proceed to checkout.
!-- Go through all the steps and confirm the payment method.
!-- Result: Then you should get an error message mentioning that there are no more items in the stock.
!-- - Then payment method was not made
Export
-
Go to the corresponding GitHub Packages repository
-
Find the link with name
vividus-to-azure-devops-exporter-0.6.2.jar
-
Click the link and download the exporter JAR-file
-
Create a new file with name
application.properties
in the same directory with the downloaded JAR-file -
Put all custom properties to the created file
-
Run the following command from the directory where the JAR-file has been downloaded, make sure to replace
<jar-file name>
placeholder with the actual name (not path) of the JAR-file including its extensionjava -jar <jar-file name> -Dspring.config.location=classpath:/application.properties,./application.properties