Questions tagged [test-automation]
67 questions
183
votes
16 answers
Why does automated testing keep failing in my company?
We have tried to introduce developer automated testing several times at my company. Our QA team uses Selenium to automate UI tests, but I always wanted to introduce unit tests and integration tests. In the past, each time we tried it, everyone got…

Mag20
- 3,281
- 2
- 23
- 21
48
votes
11 answers
What are the disadvantages of automated testing?
There are a number of questions on this site that give plenty of information about the benefits that can be gained from automated testing. But I didn't see anything that represented the other side of the coin: what are the disadvantages? …

RationalGeek
- 10,077
- 7
- 38
- 56
38
votes
11 answers
Unexpected Code Coverage Reduction
I am adding unit tests to some existing code which initially was not tested at all.
I have set up my CI system to fail builds where the code coverage percentage is reduced compared to previous build - mainly to set a path of continuing…

Jonathan Gross
- 545
- 1
- 4
- 9
32
votes
2 answers
How have Guava unit tests been generated automatically?
Guava has unit test cases automatically generated:
Guava has staggering numbers of unit tests: as of July 2012, the
guava-tests package includes over 286,000 individual test cases. Most
of these are automatically generated, not written by hand,…

dzieciou
- 650
- 6
- 19
31
votes
4 answers
Should I include tests in Docker image?
When it comes to tests, I can think of two options:
Put both test and application in one image.
Include only application code in the image. Create a test-specific container that builds after the main image and adds some layers to it (test code,…

lfk
- 419
- 1
- 4
- 4
30
votes
4 answers
How to efficiently troubleshoot or test new code when hardware setup to reproduce bugs is difficult or impossible to obtain?
I work at a mid-sized company (150ish employees, ~10 size engineering team), and most of my projects involve interfacing with lab equipment (oscilloscopes, optical spectrum analyzers, etc) for the purpose of semi-automated test applications. I have…

plast1k
- 1,549
- 2
- 9
- 12
23
votes
14 answers
What problem does automated user interface testing solve?
We are currently investigating automated user interface testing (we currently do automated unit and integration testing).
We've looked at Selenium and Telerik and have settled on the latter as the tool of choice due to its much more flexible…

IThasTheAnswer
- 443
- 4
- 7
20
votes
5 answers
How to test variable values which differ due to floating point inaccuracy caused by different DBMS types?
I am working on a program that needs to work on floating point values that are fetched from different database types: currently we support 12 different DBMS (for example, two of them are Sqlite3 and MariaDB).
My code applies some business logic to…

Gofrette
- 333
- 1
- 5
18
votes
3 answers
How would you unit-test or perform the most effective automated testing on graphics code for OpenGL?
I'm writing a game and the accompanying graphics engine on top of OpenGL in C++. Im also a fan of good coding processes and automated testing. Graphics code + testing seems pretty immiscible, since the output is often visual only, or very heavily…

Max
- 2,039
- 1
- 16
- 22
16
votes
4 answers
TDD with SQL and data manipulation functions
While I'm a professional programmer, I've never been formally trained in software engineering. As I'm frequently visiting here and SO, I've noticed a trend for writing unit tests whenever possible and, as my software gets more complex and…

Xophmeister
- 849
- 1
- 7
- 11
13
votes
3 answers
What features should be tested via automated UI testing?
We recently had a consultant tell us that if a feature can only be tested via automated UI tests (e.g. Selenium, Coded UI), then there is an underlying architectural issue. While this statement might be a bit extreme, it is along the same lines of…

Jake Kreider
- 233
- 1
- 5
13
votes
9 answers
Copy-and-Pasted Test Code: How Bad is This?
My current job is mostly writing GUI test code for various applications that we work on. However, I find that I tend to copy and paste a lot of code within tests. The reason for this is that the areas I'm testing tend to be similar enough to need…

joshin4colours
- 3,678
- 1
- 24
- 37
10
votes
3 answers
Can I use Ruby to automate everything?
I face various types of applications (web-based, GUI-based, command-line, etc.) on various platforms (Windows, Linux, etc.) to operate everyday. There is a great opportunity for me to automate tasks by scripting. But almost every type of application…

TomCaps
- 863
- 2
- 7
- 13
9
votes
6 answers
Which stage of Agile (SCRUM) should we start creating automation tests?
A little background of me - I'm a manual tester for almost 2 years within an Agile environment using SCRUM (1-2 weeks sprints). So I'm wanting to introduce automation testing in my work using Selenium WebDriver (with Java).
My question is during…

Jay
- 101
- 1
- 3
8
votes
2 answers
Integration tests, but how much?
A recent debate within my team made me wonder. The basic topic is that how much and what shall we cover with functional/integration tests (sure, they are not the same but the example is dummy where it doesn't matter).
Let's say you have a…

rlegendi
- 191
- 4