Top "Testing" questions

Software testing is any activity aimed at evaluating an attribute or capability of a program or system and determining that it meets its required results.

Mockito - NullpointerException when stubbing Method

So I started writing tests for our Java-Spring-project. What I use is JUnit and Mockito. It's said, that when I …

java testing junit mockito stubbing
How do I simulate a low bandwidth, high latency environment?

I need to simulate a low bandwidth, high latency connection to a server in order to emulate the conditions of …

testing bandwidth latency
python: how to send mail with TO, CC and BCC?

I need for testing purposes to populate few hundred email boxes with various messages, and was going to use smtplib …

python email testing
How to unit test abstract classes: extend with stubs?

I was wondering how to unit test abstract classes, and classes that extend abstract classes. Should I test the abstract …

java unit-testing testing abstract-class
How to select option in drop down protractorjs e2e tests

I am trying to select an option from a drop down for the angular e2e tests using protractor. Here …

javascript angularjs selenium testing protractor
Simulate a button click in Jest

Simulating a button click seems like a very easy/standard operation. Yet, I can't get it to work in Jest.…

javascript reactjs testing jestjs enzyme
Can I run multiple versions of Google Chrome on the same machine? (Mac or Windows)

This fabulous answer suggests there’s no way to run multiple versions of Google Chrome on one machine. Every now …

testing google-chrome cross-browser
How do I install jmeter on a Mac?

We want to use JMeter. I've downloaded the production version as directed in the user manual at http://jmeter.apache.…

testing jmeter performance-testing load-testing
How to test code dependent on environment variables using JUnit?

I have a piece of Java code which uses an environment variable and the behaviour of the code depends on …

java unit-testing testing junit environment-variables
How can one check to see if a remote file exists using PHP?

The best I could find, an if fclose fopen type thing, makes the page load really slowly. Basically what I'm …

php file networking testing