Verifying the behavior of a software system against the expected behavior of that system.
1
vote
2answers
50 views
Unit tests for constructors
If I make a class, that in the constructor accepts an array or collection, but this array or collection is optional (the parameter can be null), and then I store that collection in the object in ...
-1
votes
3answers
64 views
How is the type of testing called where you test the subjective quality of a service?
Say you are creating some module or service, which is responsible for creating certain ratings, i.e. you're creating a rating service for e-books and you are trying to judge how romantic a book is. ...
10
votes
1answer
167 views
Keeping Logical and Physical Architecture diagrams updated
In any software development project that involves distributed systems with multiple developers, having Logical and Physical Architecture diagrams is best practice but in my experience these diagrams ...
2
votes
3answers
104 views
In a testing phase,can I raise a defect which has occured due to deployment issues?
For an example,
In a testing phase if i got a defect which is due to some delayed job restarting,can I raise it as a bug?
In our project,devteam merges and deploy their codes into test site.
usually ...
3
votes
3answers
168 views
Do tests that asserts a user can't do an action have any value?
Given a system with static permissions (1 permission for every action that can be made: create a resource, update a resource, etc), and dynamic roles (can be created and assign permissions to it ...
0
votes
2answers
121 views
Unit Test or Integration Test
I recently asked a question about design and got suggestion about how to structure my code. I'm still working on design so I only have pseudo code, but this is what I had in mind.
class TableManager(...
2
votes
1answer
48 views
Testing White label iOS and Android mobile apps
We are in the process of developing white label apps for iOS and Android app. I was thinking about the test strategy for handling white label apps with minimum resources. My company is targeting for ...
4
votes
2answers
78 views
How to test a web app (inc write paths) for acceptance or integration tests, without db access?
We are having problems in testing routes that modify the data in our API.
For example the test that deletes a resource will fail if run the second time.
Also due to business logic you can't create ...
3
votes
1answer
136 views
When I need to confirm that my software works on an OS not installed on my workstation, are there disadvantages to using a virtual environment?
I want to confirm that my software works on an OS that is not installed on my workstation. So I want to use a virtual environment to test it.
I am worrying there are disadvantages about that.
Are ...
3
votes
2answers
178 views
Unit testing utility classes
All of us have some utility classes, which contain only static methods, for usage from different sources. Now, there can be two approaches which can be taken towards testing this piece of code.
...
11
votes
3answers
297 views
Is creating a completely duplicate system for quality assurance (QA) of another a bad practice?
At work we have a quite complicated system. Let's call this system, System_A. Our QA team has created another system, call this system, System_B, to test System_A.
The way System_B is used is as ...
3
votes
0answers
67 views
What is the DevOps term for 'read-only-deployment' pattern of a web application? [closed]
There is a lot of optimism around Blue-Green deployments, particularly from luminaries like Martin Fowler.
The challenge with a financial services application, is that to make a blue-green ...
4
votes
3answers
141 views
Do we need a separated branch for fixing bugs raised during the testing phase?
Before release a new version of the software, which is a web application, my company creates a release branch. The QA team tests that branch and reports some issues. Should developers commit the ...
10
votes
3answers
153 views
Is it reasonable to not have pass/fail criteria for a stress test
Just for clarity, the stress test I have written steadily increases the load on the system until it reaches a breaking point. It theoretically runs indefinitely, but as the system resources are finite,...
1
vote
1answer
93 views
Howto structure my app.js code to make it easier testable
I have a couple of Philip Hue lights in the hallway. These show the build status on their lights with a small Node.JS application. Its working like a charm.
Currently I am in the process of testing ...
8
votes
4answers
256 views
Bug clustering in source code
There are many claims about existence of clusters of bugs or defects. A simple search reveals multiple results, for example:
1,
2,
3,
4,
5.
However, all the evidence cited is anecdotal and I could ...
1
vote
0answers
49 views
How to improve this web app testing process?
My boss had an idea of simplifying tests to English like statements so that non programmers could write tests as well. We chose Lisp as the syntax in which the tests would be written. This testing ...
5
votes
1answer
74 views
Acceptance test execution strategies for heavy first-time-setup apps
We have a system with about 250 tables. The first-time-setup include running about 50 queries (known also as seeds).
We're trying out strategies to automatize our acceptance tests, and our first ...
2
votes
1answer
112 views
Unit testing trivial cases [duplicate]
Currently we don't do much testing at our company, except some manual checking. We occasionally create some unit tests, integration tests and ui tests, but not on a regular basis. Since a new project ...
9
votes
3answers
519 views
Sometimes private functions are simply yet-to-be-extracted internal units of functionality. So why not test them?
Sometimes private functions of a module or class are simply yet-to-be-extracted internal units of functionality, which might deserve their own tests. So why not test them? We will write tests for them ...
7
votes
1answer
108 views
In a CI/CD environment, how is database “data” verified and tested?
We are trying to improve our continuous integration pipeline and moreover improve how quickly we can get code through from inception to production.
We have tests at different levels that verify what ...
0
votes
2answers
110 views
What is the best/most Pythonic way to mock a private function?
Consider a module with a 'public' function which looks something like this:
def func(arg):
val = _generate_something(arg)
_do_something(val)
As you can see this is a 'void function'. Its ...
8
votes
2answers
37 views
How to test configuration changes in a service?
What is the best approach to testing a service when you add a new configuration?
For example my service offers a service to a customer and based on the customer configuration, it will offer a ...
3
votes
1answer
227 views
Is a trace table useful in functional programming?
A trace table is a technique used to test algorithms.
"The table usually takes the form of a multi-column, multi-row table;
With each column showing a variable, and each row showing each number
...
1
vote
1answer
99 views
Defect metrics - open and close rate explanation
Probably I am missing some key aspect here, because I simply have no idea how this metric is supposed to tell me anything described by the authors:
Defect Open and Close rate = (Defects found ...
12
votes
3answers
418 views
How to start the habit of writing unit test as an employee? (or should I?)
I am working in a team that mainly write small PHP sites. Currently we don't have a habit of writing unit test. Testing are done by using the site as a user by our PM, who don't know how to code, and ...
1
vote
3answers
92 views
Is this testing practice unit testing, regression testing, and/or functional testing?
In a project, its program is written in C++, and implements some http service.
The testing program for the project is written in Python.
The Python testing program doesn't call the C++ project ...
0
votes
1answer
39 views
Acceptance testing form fields (with Robot Framework)
What is best practice when writing acceptance tests for a form l without knowing the exact layout of the HTML file?
Would it be for example to test that the page contains, let's say an element with ...
3
votes
2answers
253 views
My unit test looks very similar to the class I'm testing. How do I support my stance that the test is, in fact, correct?
I'm working on a boilerplate component that's supposed to generate a working sort-of "getting started" project structure. Think of it, in a web app context, of a component that will generate a ...
1
vote
2answers
45 views
What is an appropriate metric for these variables?
For a test suite I have, each test has a failure rate (from 0 to 1), where 1 means it fails every time and 0 means it never fails, and a duration in ms (this is unbounded). I want a metric (I think ...
2
votes
1answer
62 views
How to name Test Projects
Suppose I have some Modules that each are their own component
I would now have different Testprojects spanning different modules.
UnitB_UnitTest, UnitC_UnitTest, GUI_UnitB_ComponentTest, ...
5
votes
6answers
267 views
Stronger Unit Tests Unearth Many Bugs, What to do re Validations?
I recently upgraded some tests that unearthed a lot of previously hidden bugs. The bugs are rare and low priority, but they are still bugs and will eventually need to be fixed.
How should I handle ...
0
votes
1answer
80 views
Is using both Selenium and Mocha redundant?
I am learning React+Redux now and came to the testing section. Many people use Mocha or Jest to test React components, so far so good, makes sense.
I previously have experience using Selenium and I ...
0
votes
1answer
64 views
Is it okay to allow a custom assertion to return something?
This is language agnostic. I want to develop a simple custom assertion class using test driven development.
The class will have an assert method called assertCarIsNotDamaged which will check if a ...
0
votes
2answers
58 views
How to interpret QA metrics when SW quality improves?
There are various metrics like "test case effectiveness", that is calculated as (Total number of bugs found / Total number of test cases executed).
While this produces some numbers in the beginning, ...
0
votes
1answer
68 views
What is the classic triangle problem as a testing idea (Gruenberger) taken from Richard Hamming (1972)
I try to read up on the history of testing and I found an entry that I am having problems researching online. Googeling for Triangle Problems results in geometry hits.
I found an entry on a website.
...
4
votes
1answer
113 views
Testing: why expect_any_instance_of is considered a design smell?
In this question, I'll use a ruby example, but I think it is a general question.
According to the most popular Ruby's test framework (RSpec), mocking any instance of a class (allow_any_instance_of) ...
4
votes
2answers
100 views
How to handle mocking equivalent methods without making tests fragile?
I am writing a unit test with mocks and I am concerned about over specifying the test. The idea being that if the implementation changes in a compatible way the test shouldn't fail since that makes ...
0
votes
1answer
49 views
security in selfhost web api
I am currently sketching out a project I am doing at my job, where I will have a self hosted WebAPI, connected to a serial device, where the app I am creating will configure that device. No, it is not ...
3
votes
1answer
277 views
In c# how do people make complex functions
Hi I'm working on a c# MVC code first project. I've started the project and have created the Models, database frontend etc.
Now my attention has come to writing something that can read an excel ...
0
votes
0answers
38 views
Creating a local Microsoft Stack virtual test environment for services and websites?
Situation: We are a 12 person team who almost exclusively use Microsoft products. We have over 200 asp.net applications varying from WinForms, WebForms, and the many variants of web-services and ...
9
votes
4answers
268 views
Is it a good idea to have separate test methods for every step?
I am testing a REST api. Let's say it returns a JSON structure. What is the best approach to testing the server? Each test step can only succeed if all previous were successful.
Structure A: test ...
0
votes
1answer
30 views
break down test class into multiple file naming convention
I have a test class with about 25 tests that are testing the different aspect of it.
I wonder
Should I break it down into smaller classes?
If so, then what is the best naming/packaging convention?
...
2
votes
0answers
86 views
How to determine the reason why Firefox has poor performance on my web application?
I am developing a complex web application, which is working fine on Chrome and IE, but recently has developed huge performance issues on Firefox which lead us to block it's usage completely to avoid a ...
16
votes
7answers
999 views
Manager wants a combined development & production environment
I work in a small programming team supporting a larger organisation. This year our manager has decided we are going to use Oracle Apex technologies to handle the vast majority of our company data.
...
2
votes
3answers
203 views
How to mock REST services for testing
I am currently building an application that consists of multiple small rest services that communicate between them. For example, a request to service A might make requests to services B and C in the ...
0
votes
4answers
199 views
Are “Hard to find bugs” the responsibility of the developer or the tester?
May be it seems an open question (or non-constructive according to stackoverflow standards) .... but I am asking if there's something rigid according to Software process standards addressing this ...
-3
votes
2answers
124 views
Can we fix Singletons testability tight coupling?
It is well known that Singletons are anti-patters for several reasons:
tight coupling
singletons are pathological liars
no testability
inheritance is not available
you cannot program to interfaces, ...
-1
votes
1answer
41 views
New project development & git guidlines and hints [closed]
We are two senior students and we want to develop an app.
Although we dont have experience on using git & github.
Our app will consist of a server handling requests with a mongoDB database. The ...
-2
votes
1answer
43 views
WebService testing using SOAPUI
I am currently working as functional tester. I have been assigned to do web services testing for a project. The test strategy is something like this:
our company is switching vendors who provide a ...