All Questions
Tagged with testingfunctional-testing
35 questions
-3votes
2answers
362views
Why are logs not used for testing? [closed]
In tests, state verification or collaboration verification is usually undertaken. One of the drawbacks of this approach is the coupling of tests to the design of constructs. Consequently, when ...
0votes
1answer
267views
Isolated Integration Tests in Layered Software Architecture Pattern
Let's say we have a simple application that uses a popular approach as Controller -> Service -> Repository pattern under a framework. We would like to write integration tests and start from ...
3votes
1answer
85views
Structuring user story tests with variations
I'm writing the sort of tests which go through a whole user scenario e.g. User clicks "edit profile" User edits their name etc. However, I find myself needing often needing to test small ...
0votes
3answers
358views
How to control time with API testing?
I'm trying to test an API (see API testing). Some operations depend on time. Here are some examples: A post may only be edited within the first 5 minutes You may not try to login more than 10 times ...
5votes
2answers
1kviews
Should API tests depend on each other?
I have an API I wrote that I want to test at the API level. Given that I'm testing from an external point of view, how can I manage data sets for each tests? The simplest solution I could come up ...
4votes
4answers
605views
How to comprehensively test software that doesn't play well with testing?
I'm currently working in a project that aims to implement automatic testing of a software package. You can imagine this software is a bit like Excel in that it has a workspace that contains all the ...
9votes
4answers
7kviews
Should tests perform a single assertion, or are multiple related assertions acceptable
Assume a client is making a request to an API endpoint that returns a JSON response where the structure and data change depending on whether the request was successful or not. Possible responses may ...
7votes
3answers
444views
Is checking for unexpected types in dynamic languages in an untyped project necessary?
In statically typed languages or dynamically typed languages that use a type checking system you can guarantee that the input type is the type that you specified in the contract. However, in ...
3votes
3answers
3kviews
How do I test unreachable code?
Let's say your company sells software that comes with customizable text, and your team's job is to customize it. The client engagement includes a contract in which the client specifies all of the text ...
-4votes
1answer
111views
test class that include another class - Only one test or both
i have a sytem a that include system b and return the result. simple!. concrete example an API, one controller that internally call another class then perform the operation. route --> controller ...
0votes
2answers
122views
Testing an underwriting engine
I made a post in relation to this question on the SQA here but thought I would post on this board as it's more active. I'm testing an underwriting engine with a front-end interface that asks a ...
2votes
1answer
199views
Functional tests for SVN management script
I have a Python script which is responsible for updating SVN repository (in a nutshell) and checking it. Now I'd like to write some functional tests for the script. To check whether SVN update has ...
3votes
5answers
603views
Is there a valid reason to separate expectations from tests?
I've inherited an application that has a suite of tests that drive me batty. But one of the design decisions that this test suite takes that completely leaves me scratching my head is the separation ...
7votes
1answer
6kviews
Integration vs Functional Testing
Alright....so this is driving me nuts as I'm trying to encourage the team to write more tests yet here I am unable to determine whether the following example is considered an integration or a ...
9votes
1answer
588views
How to manage non-unit tests in a project?
I have some code in my project I personally call tests that are not unit tests. They are meant to be run and the result has to be evaluated by a human. I did this because I'm making a physics engine ...