Skip to main content

All Questions

1 vote
1 answer
4k views

Karate junit5 runner can't find feature file

I've built a simple project structure following the documentation https://github.com/karatelabs/karate#folder-structure runner class: public class HealthCheckRunner { @Karate.Test Karate ...
DucanoidYoung's user avatar
3 votes
2 answers
4k views

How to link @BeforeEach method with specific @Test methods (Java, JUnit)?

For example we have 2 classes: BaseTest and Test. Test extends BaseTest. BaseTest.class contains 2 methods with @BeforeEach annotations. @BeforeEach void setUp1() {} @BeforeEach void setUp2() {} ...
bohdan's user avatar
  • 445
0 votes
2 answers
405 views

API Perfromance testing tool - JMeter or JUnit?

i am working on some performance testing task. The main goal is to compare duration of old NCP protocol calls againts new REST API calls. I have this scenario: Client has an authenticated session ...
Honza Strakoš's user avatar
0 votes
1 answer
170 views

JUnit Testing POST to a parameterized API

How can I pass {service} to this JUnit test? @Test public void test4() throws Exception { List<ProofOfDeliveryUndeliveredResult> returnList = new ArrayList<...
hagan10's user avatar
  • 153
2 votes
2 answers
2k views

JUnit test for testing my API client is not working, "Error: Test Engine with ID 'junit-jupiter' failed to execute test"

I am new at testing with Junit and using mockito. I have created a class for my client which is supposed to send requests to an API. I have also created a class to write a simple test. When i run the ...
monkey123's user avatar
  • 183
0 votes
1 answer
104 views

How to document the failing JUnit tests

I have developed an Automation framework with JUnit for our API Testing. Here I have created a separate class for each API listing multiple unit tests for that API. I want to list each failing JUnit ...
Neetesh Kumar Gupta's user avatar