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

learn more… | top users | synonyms

1
vote
2answers
89 views

Bug-testing a gigantic program, how to proceed? [on hold]

Hi guys I'm currently bug-testing a program at my university for a couple of professors. The program can generate several different reports with information about the state's public transportation ...
4
votes
2answers
281 views

What to do with my unit tests when refactoring code to a new class

I hope I can make a clear question... I've simplified my code example for this question, I hope it still makes sense. public class PersonComponent { public bool IsQualified(Person person) { ...
3
votes
2answers
52 views

Defining and testing detailed user interface requirements

I am in the process of designing and building a small web app. While implementing a first prototype I discovered that I make many unwritten assumptions about the behaviour of the interface. For ...
2
votes
1answer
75 views

Testing async code: are long sleeps acceptable?

I am testing some AngularJS code using Selenium. Angular updates the DOM in unpredictable order, sometimes completely async (via setTimeout), so it is difficult to know when the DOM has been ...
1
vote
1answer
83 views

Best approach to setting up test and production environments for a new project [closed]

We're a very small team of not very experienced programmers who just started a decently big project from scratch. We're using Visual Studio 2015, SQL Server 2008 and the Entity Framework. The company ...
33
votes
7answers
4k views

Is there a need to keep tests for simple (self-contained) functions?

Consider this: public function polynominal($a, $b, $c, $d) { return $a * pow($x, 3) + $b * pow($x, 2) + $c * $x + $d; } Suppose you write various tests for the above function and prove to ...
3
votes
1answer
74 views

Code Coverage or Test Brevity?

I've been writing a lot of unit tests lately and have become somewhat obsessed with code coverage. However, I'm struggling justifying going for 100% code coverage, when so many tests would be a ...
-1
votes
1answer
95 views

How do front-end developers test pages when the files they are handed are PHP views? [closed]

Someone who has a PHP project invited me to do the front-end work on his site. I don't know PHP, I've only ever worked with HTML/CSS/JS files. I cloned the project files from GitHub, and all of the ...
1
vote
1answer
41 views

Developing an application where a chunk of the code is used by both the app the tests

I'm developing a web app in PHP where part of the code I'm developing for it will also be used in the tests. I'm not sure how to handle this. That code in question is an abstraction to communicate ...
15
votes
2answers
889 views

Is it ok to avoid testing base classes?

I have a base class with a fair amount of "meta programming" to give it the flexibility/abstraction it needs to be rather generic. I do have a lot of subclasses using the common methods in the base ...
0
votes
2answers
77 views

Testing Scenarios More than Once

Is there an industry standard in how many times a scenario is tested before it is considered passed? Is it common to test a given scenario using multiple different records? Here is the issue: A ...
1
vote
0answers
39 views

Managing code: Unit tests with source or separate?

The standard practice in the Objective C world has been to follow that laid down in the Java world when it comes to code management. i.e. Your application source code goes in one directory, and your ...
7
votes
4answers
170 views

What is the right testing strategy in Agile Scrum/Kanban teams?

The problem is: The team , I am working in has 10 developers to 2 testers ratio which means we are going to churn out code more quickly than it is "Test" done. So, What should be the right approach ...
2
votes
3answers
117 views

Unit testing text output

I have recently become responsible for a legacy tool that analyses code and provides a log as output. As part of the JUnit suite for this, there are ~100 tests that rely on successfully matching the ...
2
votes
1answer
229 views

How to approach legacy code? Desperate case [duplicate]

I have a methodological question. I am faced with a reasonably large legacy system (Java Enterprise). I am new to its codebase -as everybody in the team- since it's a product we had in outsourcing ...
7
votes
3answers
232 views

Can I avoid more faults if I use different paradigms for the implementation and the specification/tests?

Since it is convenient for the developer, the same paradigm are often used for implementations and specifications, e.g. for testing (e.g. Java for the implementation and unit tests, Scala for the ...
1
vote
1answer
44 views

Website form testing [closed]

My boss has three websites and each of those websites have forms on them that people can sign up for nightclubs. He asked me to look up usability tests, however, I don't think that's what hes ...
0
votes
1answer
100 views

Step-by-step functional testing automation

I have a basic class in C# from which I create inherited classes for databinding scenarios. You can think of it as a substitute for .NET's DataRow class. I want to automate testing of a typical row's ...
81
votes
12answers
10k 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
46 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 ...
2
votes
1answer
65 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
70 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 ...
7
votes
3answers
100 views

How to write tests that make sense for visualization software?

I have a fairly large piece of software which takes certain file types and visualizes them / creates a host of buttons for manipulation of the image plotted. I feel like I'm finding bugs / pieces of ...
0
votes
2answers
147 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
882 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
76 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
150 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
586 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
108 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
80 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
8answers
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
73 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
21 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
161 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
194 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
413 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
179 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
68 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
243 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
153 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
139 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
61 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
70 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
245 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
219 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
107 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
196 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 ...
1
vote
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 ...
1
vote
2answers
42 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
92 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 ...