Verifying the behavior of a software system against the expected behavior of that system.

learn more… | top users | synonyms

15
votes
9answers
2k views

Is testable code better code?

I'm attempting to get into the habit of writing unit tests regularly with my code, but I've read that first it's important to write testable code. This question touches on SOLID principles of writing ...
0
votes
2answers
38 views

Is there such a thing as the testing of automation?

I know that it's possible perform automation of testing. That is, take tests that are manual, and make them automatic. However, is there such a thing as the testing of automation? That is, checking ...
-1
votes
1answer
50 views

What are the pros/cons of committing tests before/after the code they test in a code repository? [closed]

After a new feature is developed together with the corresponding tests and being prepared to be committed to the code repository, regardless of the order of their writing, what are the advantages of ...
2
votes
1answer
47 views

Code review and testing in the process

I am thinking about the software development process of my team, more specifically, I am thinking about tests and code review into our development process. I came to the conclusion that, in order to ...
1
vote
1answer
35 views

How to pass object generated by certain test class to another test class using webdriver and testng

I am contemplating on creating a public api for my team to use that will encapsulate the workings of webdriver and testng as it's main tools. Primary to the concern is re usability of code when ...
5
votes
3answers
70 views

Does writing tests make sense for visualization software? [duplicate]

This is a fairly dumb title, because I realize of course writing tests is useful and makes sense, but I don't really know how to go about it. I have a fairly large piece of software which takes ...
0
votes
1answer
71 views

Testable design in Swift

I've been searching for so long about how to design testable classes in Swift but every information site just describe basic stuff like how to test, how to assert, why is testing good... My current ...
15
votes
2answers
802 views

Shipping test code. Why wouldn't you?

I would like to ship unit tests alongside a product. Specifically, provide an option so that anyone with a copy of our program can hit a "self-test" button or pass --self-test on the command line and ...
1
vote
1answer
41 views

Functionality in ISO 9126 is Non-functional quality? Contradiction in ISTQB and many sources

I have been doing some research and realized that I missed the fact that in ISO 9126 and ISO 25010, all characteristics are quality characteristics and represent (according to various papers) just ...
-2
votes
3answers
130 views

On testing the testers [duplicate]

My question is similar to Leaving intentional bugs in code for testers to find: We don't do this at our firm, but one of my friends says that his project manager asked every dev to add ...
22
votes
6answers
536 views

TDD in theory in only

A little over a year ago I was fortunate enough to be able to take a 9 month break from work. I decided that in that time time I would hone my C# skills. I started working on a bunch of projects and ...
2
votes
2answers
80 views

Testing strategy for wrapper class

In my Android project I decided to create wrapper around SharedPreferences(which is basically key-value storage) with following interface interface Preferences{ public void saveInt(int value, ...
4
votes
2answers
66 views

How to decide what forms the System Under Test

Ok, so we started with the initial version of "The Art Of Unit Testing" and we do unit tests for classes where every test covers one aspect of one method. This has the drawback of high maintenance ...
49
votes
7answers
7k views

Is it good that testers are competing to see who opens more bugs?

I'm a software developer. There is a team of testers who follow and run test cases written by the analyst, but also perform exploratory testing. It seems like the testers have been competing to see ...
3
votes
1answer
69 views

Using parameters in automatic integration tests

I am trying to automate integration testing in our team, and I am wondering if making tests with parameters is good or bad design. My problem is that the integration tests should run some perl ...
0
votes
0answers
20 views

web app+databse+object store E2E testing

I wrote a thin layer that allows me to log every interaction between other programs and object store. It has simple logic to accept and serve only unbroken files(if checksums provided by user and ...
3
votes
3answers
141 views

How do you pass/fail performance tests?

Example: A certain test is run five times on the current build, to compare it to release 1.0, where the same test was also run five times. Build 1.4 22 ms, 26 ms, 23 ms, 25 ms, 20 ms Release ...
2
votes
2answers
175 views

Is there a software industry for converting old, outdated code to new standards? [duplicate]

There still are developers building and extending applications using languages like COBOL, since banks and other such organizations rely on ancient systems to power their day to day businesses. Some ...
1
vote
2answers
209 views

How to unit test static void methods? [duplicate]

How does one go about unit testing static void methods? I have a few more questions: Is it necessary to unit test database queries like insert, select and update queries ? If so, how does one test ...
5
votes
4answers
142 views

How do you scale your integration testing?

I am investigating techniques and strategies for scaling our growing number of integration tests on our current product, so that they can (humanly) remain part of our development, and CI process. At ...
0
votes
1answer
60 views

Development and testing PHP script that gets variables from external server

I have a web app that sends users to an offsite payment server to complete a transaction, and I'm working on the PHP page that users are returned to upon completion of the transaction. The script uses ...
4
votes
1answer
159 views

How well am I writing my tests?

I've been coding as a career for about 2 years now but am just now writing my first "real" tests for a non-trivial application. I've been trying to follow best practices I've picked up from the ...
0
votes
5answers
151 views

what gets testers invested in the releases they test? [closed]

For a lot of roles in a development team it is pretty obvious how these roles are invested in the quality of releases of their software. Developers who accidentally write bugs know that when the call ...
1
vote
1answer
87 views

What to test for in a simple form where the value of one input field dictates other fields?

Note:- I have added android and iOS tags to this question but it is not necessarily restricted to those platforms. Consider a simple registration form where the the value of one field dictates what ...
0
votes
1answer
47 views

What is calendar time and execution time in terms of reliability testing?

What is calendar time and execution time in terms of reliability testing? My book is talking about the Musa Okumoto model and says that it uses calendar time and execution time. However googling and ...
0
votes
0answers
60 views

how to do test driven development for cgi / lua script

I'm new to cgi and just finished writing my test website using cgi / lua for an embedded device. Now I'd like to try writing some scripts to automate the testing of the various functions I have in my ...
0
votes
1answer
130 views

How do I actually use Selenium to automate UI testing? [closed]

We have a large inventory system where we work and making changes has the possibility to break things in other areas. This happens a lot, and it is hard to manually test for everything every time ...
0
votes
3answers
167 views

What is the difference of smoke testing and black-box testing?

Main theme of my question is about the differences of Smoke Testing and other types of software testing specially Black-box testing but also I'm very curoius to know what is the purpose of this ...
0
votes
3answers
70 views

How to test Windows .NET TCP program handling of connection failure [closed]

I've written my own C# TCP communications module (using SocketAsyncEventArgs, although that's presumably irrelevant). My module runs at both ends of the connection, client and server. As part of the ...
4
votes
2answers
141 views

How do you get complete manual testing by QA in a git/hg flow development process?

I have a question about working with independent testers doing manual testing (not about automated unit and regression testing.) In a flow process I do my work on a feature branch until I'm confident ...
0
votes
1answer
48 views

How can I automatically test my app on multiple OSes? [closed]

I have a Python based desktop app that can run on Windows, Linux, and Mac. Each time I make an update, I would like to test that it works on each OS, because I have already had several OS-specific ...
0
votes
0answers
99 views

DBUnit alternatives to test DAO layer

We have a lot of DAO tests written with DBUnit and (it's ugly) datasoure. It's not that hard to edit it and add some new entries but it's annoying. Worse is that we have only one datasource for all ...
1
vote
2answers
40 views

Testing code in Java that is only loosely defined

My question is about testing in general. At school, professors say that testing has to be written before we begin to write some code. I guess we need to use EasyMock to represent the classes not ...
2
votes
3answers
86 views

Property based testing without reimplementing the code under test

Given a very simple method such as: def squaredDistance(p1: Point, p2: Point) = math.pow(p1.lon - p2.lon, 2.0) + math.pow(p1.lat - p2.lat, 2.0) What are some valuable property-based tests ...
4
votes
3answers
134 views

What is Black Box Testing? Are Functional and Usability Testing its types?

I am writing about testing and I am confused about the following: What exactly is Black-Box testing? Are functional testing and Usability testing two different types of testing and are they types of ...
57
votes
11answers
7k views

Does path coverage guarantee finding all bugs?

If every path through a program is tested, does that guarantee finding all bugs? If not, why not? How could you go through every possible combination of program flow and not find the problem if one ...
0
votes
2answers
131 views

Why not using questions in TDD tests descriptions [closed]

I've been a (small) while (ten months more or less) doing TDD for my own applications, trying to improve my skills following this workflow. Thus I am comfortable writing tests, stubbing, mocking, etc. ...
0
votes
1answer
73 views

Test logic with external data [duplicate]

I have a site programmed in PHP where I make more call to external server that return me big xml of data. For each record of the xml I have to make other external call to get other data. So my ...
2
votes
2answers
91 views

Managing scaffolding for debug vs production builds

The more I program the more I realize that most of my time is spent writing scaffolding for programs so that I can debug them and then strip away the scaffolding for production. The problem is that ...
3
votes
0answers
67 views

Is there an industry standard term for a build which uses the production API, but is specifically for internal testing? [closed]

I'm working on clearing up our build processes of a PhoneGap app we're developing for iOS and Android, and I want to develop a concise naming scheme for our different build types. Here's what I'm ...
3
votes
3answers
126 views

How to write tests for function that depends on a config file?

I have a function that uses information from a config file. How do I test the function? Ideally, I'd want to inject my own version of the config file and test from there, but I'm not using dependency ...
29
votes
7answers
3k views

How can QA staff test caching logic that they can't see?

I just implemented a caching layer in my web application, and now I'm wondering how QA is supposed to test it, since caching is transparent to the user. One idea I have is to put logging in the ...
13
votes
6answers
1k views

Is creating the objects you think you will need ok in a first test in TDD

I'm fairly new to TDD and I have trouble when creating my first test when it comes before any of the implementation code. Without any framework to the implementation code I am free to write my first ...
2
votes
2answers
225 views

Don't repeat yourself vs do only one thing in a method

I am currently writing some test cases in python. I often end up calling the same two or three lines of code at the start of a test case in order to get the program I am testing going. For example: ...
0
votes
1answer
61 views

Cyclomatic complexity for 2 IFs - why not just FF or TT?

I know that cyclomatic complexity defines the number of independent paths in the code. Using the simple way, it can be calculated as number of IF +1. In that case, for a simple code with two IFs, CC ...
1
vote
2answers
190 views

Testing front-end app that hits a REST service

A lot of questions about testing here... And I have another one. Forgive me, but I want to make sure I do this right. Let's say I have a front-end application, be it a mobile app, or a single-page ...
0
votes
0answers
56 views

Domain analysis for discrete values - ON and OFF points in these cases

Following my previous question (with great answer from Bart van Ingen Schenau), I noticed a discrepancy I could not wrap my head around: Bart mentioned that: The point ON the boundary is by ...
1
vote
3answers
196 views

Domain analysis - why OFF points are inside of the domain when the border is open

I have asked on a few other sites, no response but it must be something silly as many authors mention in their books. Here is the best text I found: My ultimate question is: Why the OFF point lies ...
3
votes
3answers
149 views

Helping testers who don't have specialized domain knowledge

I am a team lead on a project that develops specialized engineering software. My developers generally have advanced degrees and the domain knowledge needed to work with the software we develop, but my ...
0
votes
4answers
60 views

Testing generic errors

I've got a program that validates it's input, and then errors. So far for each kind of error I created a new derived class. But this was getting pretty unwieldy (the input is complex so there are ...