Home » Tag Archives: Testing

Tag Archives: Testing

5 Software Testing Strategies to Uplift Business Growth

The immense popularity of SaaS products in the market has been an important factor in the surge of start-ups delving into the software industry. However, when it comes to developing and putting a software product on the market, just a simple idea is not enough. There are just as many failed software products in the market as similar offerings are ...

Read More »

Name Parameters In Tests?

As discussed in What are We Testing Again? from the Test Smells, making the test code explain its test case and test data is a vital responsibility. When writing test code, the best advice is focus on creating understanding, rather than focus on DRY code. This is largely because refactoring tests, requiring us to hide things behind methods or named ...

Read More »

The First and Last Rites

Let’s look at another test smell. Consider the following tests: @Test public void connectionWorks() { database = openDatabase(); database.healthCheck(); database.close(); } @Test public void countRows() { database = openDatabase(); assertThat(database.countAll()) .isEqualTo(0); database.close(); } In the above code we’ve written two tests for some fictional database. It looks like both those tests start and end with the same code. On top ...

Read More »

What are we Testing Again?

This is a general case around Test Data in the Test Smells. Let’s have a look at a test snippet: 1 2 3 4 5 @Test void dayPercentile() {     assertThat(DayPercentileCalculator.calculate(EXAMPLE_1))         .isEqualTo(EXAMPLE1_EXPECTED); } What does this test tell us? Here’s what I think it tells me: There is a DayPercentileCalculatorIt has a calculate methodWe’re looking at the output of that methodWe’re ...

Read More »

Efficient enterprise testing — conclusion (6/6)

java-interview-questions-answers

This last part of the series will cover additional end-to-end tests, testing in production, and a conclusion of the parts. Further end-to-end tests & testing in production Besides system tests that only verify a single application-under-test and mock external concerns, our pipeline must also include full end-to-end test that verify the system as a whole. The good news is that ...

Read More »

Performance Testing with JMeter

java-interview-questions-answers

When developing complex, high-availability software projects, performance is of key importance. That is especially true in these modern times where anything other than lightning fast accessibility of real-time data is punished. This is not always an easy feat when talking about the huge amounts of data that are sometimes required. In this post we’ll use an online booking engine as ...

Read More »

Efficient enterprise testing – test frameworks (5/6)

java-interview-questions-answers

This part of the article series will cover test frameworks and my thoughts and experiences on when and whether to apply them. Thoughts on test frameworks The reason why I’m not too excited about most test framework is that, from my view, they mostly add some syntactical sugar and conveniences, but per se don’t solve the problem of having maintainable ...

Read More »

Efficient enterprise testing — workflows & code quality (4/6)

java-interview-questions-answers

This part of the article will cover the impact of having effective workflows during our development sessions as well as how proper test code quality enables us to create maintainable tests, especially for complex projects. Development workflows & pipelines Programming is a flow activity and we developers should be interested in keeping our workflow efficient and the turnaround times low, ...

Read More »

Efficient enterprise testing — integration tests (3/6)

java-interview-questions-answers

This part of the series will show how to verify our applications with code-level as well as system-level integration tests. (Code-level) integration tests The term integration test is sometimes used differently in different contexts. What I’m referring to, following the Wikipedia definition, are tests that verify the interaction of multiple components, here on a code level. Typically, integration tests make ...

Read More »