authorjapps / authorjapps/zerocode
To write response and request to file
- Dominant language
- Java
- Stars
- 1k
- Forks
- 453
- Avg merge
- 7d 2h
- Merged PRs (30d)
- 5
Description
Hi team,
1. I am trying to write each API request and response to distinct request and response .txt file for each test case . But I am not able to do so. The logs generated contains whole history of execution. But i want only request and response for each test case. Please help me in this.
2. I am trying to pass the token generated in one test case(Token as global variable) to different test cases. but not able to do so. Kindly support me here. For example The token generated in 1st test case to be used in the below 3 other test cases.
//Test 1 @Test
@Scenario("helloworld/token.json")
public void testGet() throws Exception {
}
//Test 2 @Test
@Scenario("helloworld/request1.json")
public void getUserdetails() throws Exception {
}
//Test 3 @Test
@Scenario("helloworld/request2.json")
public void getUsrInfo() throws Exception {
}
@hgvanpariya @dinesh76in @saurabhvalsangkar @aghorpade
Contributor guide
Assessment
This issue has not been assessed yet.