Questions tagged [functional-testing]
The functional-testing tag has no summary.
54 questions
4
votes
3
answers
314
views
The applicability of functional core - imperative shell to a cli program which contains a wrapper around a binary
Not long ago while I was exploring for solutions to test without mocks I've found out about the functional core, imperative shell architecture. It sounds great, I also think that it would play nicely ...
-3
votes
2
answers
401
views
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 ...
3
votes
1
answer
97
views
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 ...
5
votes
2
answers
470
views
Doesn't "Always test through the public interface" contradict testing of individual composed functions?
I'm currently reading "Composing Software" by Eric Elliott, which is about functional programming in JavaScript. He states that if you compose multiple functions together, and that these ...
5
votes
2
answers
1k
views
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 ...
9
votes
4
answers
7k
views
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 ...
3
votes
3
answers
3k
views
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 ...
1
vote
1
answer
1k
views
How do I create an integration test that tests multiple microservices without mocking?
I understand the concept of mocking API responses and their uses in unit testing, but in functional/integration testing, I actually don't want to mock because that defeats the purpose.
For example, ...
2
votes
1
answer
206
views
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 ...
3
votes
5
answers
622
views
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 ...
1
vote
2
answers
2k
views
What are the drawbacks of modeling (unit) test fixtures in JSON instead of using ObjectFactories?
When writing java tests for an application, be they unit tests or testing a broader scope, the java community tends to model fixtures in terms of object factories that produce fixtures of a defined ...
0
votes
1
answer
305
views
AngularJS - is there a good reason why unit testing of angularJS controller should still be written alongside with e2e tests?
Given the official tutorial of angularJS,
https://docs.angularjs.org/tutorial/step_07#testing
It is apparent that it only tests the controller's states (e.g. its model) when events happen (e.g. ...
3
votes
4
answers
1k
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 ...
1
vote
3
answers
1k
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 ...
5
votes
1
answer
2k
views
Automated Tests on Dynamic Content
I'm doing SQA work for several Kendo-based sites that have many tables (some are hand-made by our devs). These tables have a lot of rows, columns, pages, and data filled in them- so I'm basically ...
-1
votes
1
answer
231
views
How many functional tests to write?
It is quite easy to cover your code by writing tests first using TDD and you know that when to stop once you implemented a feature.
For me it is trickier to decide how many functional tests to write ...
6
votes
5
answers
3k
views
What are the best practices for managing Test results
We are using GitHub for managing source code and waffle board for managing workflow/issues.
Right now when we test the system using custom written test cases, it generates a CSV file. We want to be ...
3
votes
1
answer
374
views
How do you properly test a complete software replacement
We have System A (an application and a database) that is built for a specific business department and therefore has business aligned data model and table structure.
System A is a mission critical ...
1
vote
2
answers
628
views
Integration Tests - How much is too much? [duplicate]
First of I'm not sure if I chose the right name for my question, I'm not sure if
they are functional tests or integration ( or other ). I'm talking about tests which test (or it should) the app from ...
5
votes
3
answers
2k
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 both ...
3
votes
3
answers
1k
views
Generating test data for a search application
I have a general question about testing search applications, and what I'm looking for is pointers to resources on the topic that I can go and research on my own. I've tried semi-informed, semi-...
4
votes
0
answers
190
views
How do you prevent confused tests? [duplicate]
Testing code for correctness is important. Whether you do strict TDD or not, tests are really the only way a project can scale in size beyond a point where every team member can reasonably keep all ...
1
vote
3
answers
380
views
Is it okay to test multiple similar files in one functional test
I've a functional test using Junit which tests delivery of xml file to an end-point. XML file is sent by client, so I copied it to a test folder, read it from there in my test and do asserts.
We ...
0
votes
1
answer
3k
views
Why is black box called functional testing when it tests also non functional?
This has been bothering me for a while. Security, performance tests etc. are all done typically using the black box approach. But these are nonfunctional,while black box is called functional testing.
...
7
votes
4
answers
866
views
Is this a test smell or is it even worse?
I have recently been looking at some testscripts which looks a bit like
...
try {
receiveSomething();
// something was received even though it shouldn't
failTest();
} catch (TimeoutException e) ...