Skip to content

Commit e626910

Browse files
authored
Update README.md
1 parent 014a59f commit e626910

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Java based SDK to integrate your automation test results to Azure DevOps Test Plan. Add this library to your pom.xml and use the methods to POST your test results to Azure DevOps. This SDK internally uses the Azure DevOps REST APIs to update the results to your project.
44

55
### Maven Dependency
6-
```
6+
```maven
77
<dependency>
88
<groupId>com.testautomation</groupId>
99
<artifactId>azure-devops-testplan-java-sdk</artifactId>
@@ -15,7 +15,7 @@ Java based SDK to integrate your automation test results to Azure DevOps Test Pl
1515
The below snippets are to be added in your hooks or listeners so that this gets executed after each test case execution.
1616

1717
Set basic details of your Azure DevOps server / project. To be set during the beginning of the execution.
18-
```
18+
```java
1919
//init config class
2020
AzureConfig.organization = "";
2121
AzureConfig.project = "";
@@ -27,7 +27,7 @@ The Azure DevOps Test Execution has the below hierarchy
2727
`` Test Plan --> Test Suite --> Test Run --> Test Results --> Test Points ``
2828

2929
Setting the Test Suite Entity
30-
```
30+
```java
3131
TestSuiteEntity testSuiteEntity = new TestSuiteEntity();
3232
testSuiteEntity.setPlan_id(606035); // update with your Test Plan ID
3333
testSuiteEntity.setParentSuiteId(606036); // update with your Test Suite ID
@@ -36,7 +36,7 @@ TestSuiteEntity testSuiteEntity = new TestSuiteEntity();
3636
```
3737

3838
Creating a Test Run
39-
```
39+
```java
4040
//create testrun
4141
TestRunEntity testRunEntity = new TestRunEntity();
4242
testRunEntity.setTestPlanId(606035); // update with your Test Plan ID
@@ -45,7 +45,7 @@ Creating a Test Run
4545
```
4646

4747
Create a Test Result Entity against each Test Case you execute
48-
```
48+
```java
4949
//test case - 745460
5050
TestCaseEntity testCaseEntity1 = new TestCaseEntity();
5151
testCaseEntity1.setId(745460); // update with test case ID
@@ -76,13 +76,13 @@ Create a Test Result Entity against each Test Case you execute
7676
```
7777

7878
Now add the Test Result Entities to Test Run
79-
```
79+
```java
8080
TestResult.add(testResultEntity1, testRunEntity);
8181
TestResult.add(testResultEntity2, testRunEntity);
8282
```
8383

8484
Update the Test Run
85-
```
85+
```java
8686
testRunEntity = TestRun.update(testRunEntity, "Completed",
8787
"Automated Test Run completed successfully.");
8888
```

0 commit comments

Comments
 (0)