Questions tagged [functional-testing]
The functional-testing tag has no usage guidance.
51
questions
0
votes
1
answer
55
views
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 ...
3
votes
1
answer
81
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 ...
1
vote
1
answer
204
views
How do I test a user receiving a text?
I am writing functional tests for my application that scrapes some data online then sends the results in an SMS text (on a weekly basis). My understanding is that functional tests are meant to test ...
5
votes
2
answers
281
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 ...
0
votes
3
answers
114
views
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 ...
2
votes
2
answers
213
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 ...
4
votes
4
answers
582
views
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 ...
8
votes
3
answers
2k
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 ...
7
votes
3
answers
327
views
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 ...
3
votes
3
answers
1k
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 ...
-4
votes
1
answer
100
views
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
...
0
votes
1
answer
615
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, ...
0
votes
2
answers
113
views
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 ...
2
votes
1
answer
150
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 ...
2
votes
5
answers
344
views
Unit testing and other forms of testing
This may be a silly question but if I have good unit test coverage, does that mean I can reduce the amount of, or remove completely, functional and integration testing.
When people talk about having a ...
3
votes
5
answers
425
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 ...
2
votes
2
answers
347
views
What are techniques to run acceptance tests in a cloud app without polluting the environment with test data?
We are writing a cloud application in a micro-service architecture. We have good unit and integration test coverage for the individual services and we have a set of (public) API level acceptance tests....
1
vote
2
answers
1k
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 ...
8
votes
1
answer
5k
views
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 ...
0
votes
1
answer
286
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. ...
9
votes
1
answer
498
views
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 ...
3
votes
4
answers
685
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
2
answers
123
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 ...
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 ...
3
votes
1
answer
291
views
Functional testing of incomplete features
I've had several tasks where I'm to do functional testing (and to be writing automated test scripts) on features that are not actually complete.
For example, CRUD testing on a project to make sure ...
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 ...
4
votes
3
answers
201
views
Should the developer provide steps/directions for SQA?
New to the field of QA, I've been asked to do SQA for a project that I'm unfamiliar with and that is close to completion. An example of a specific functional task to be tested looks like the following:...
-1
votes
1
answer
168
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 ...
-1
votes
4
answers
836
views
Should a test scenario prepare all of its required data? [closed]
Consider a BDD scenario with some given steps that refer to existence of a set of data in database. For example consider the following scenario steps:
Given there is an active customer
When as and ...
6
votes
5
answers
2k
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 ...
7
votes
2
answers
5k
views
The concept of "quality gates" in software testing
We are using SonarQube for code quality testing. It tests the quality of code, and not the function of code. It has the concept of quality gates, so you can set for instance a 90% quality gate, ...
3
votes
1
answer
295
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 ...
2
votes
1
answer
1k
views
Side-by-side Functional and Acceptance Testing (SpecFlow)
Edit: I have found a closely related question: StackOverflow
This question is not about the differences between functional and acceptance tests! Almost all the info I could find on the web just ...
0
votes
2
answers
451
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 ...
1
vote
1
answer
6k
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
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 types of ...
0
votes
1
answer
563
views
Testing process on life critical systems [duplicate]
I currently work in web development - unit testing, functional testing are all good and really are part of what is considered being a professional developer.
However, I also have a fear of flying and ...
3
votes
3
answers
965
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-...
5
votes
3
answers
723
views
automated acceptance testing / BDD & workflow for designing a system
Recently, I started reading the book Specification by Example, which relates to automated functional testing and BDD (from what I've understood till now).
I've tried using Concordion (.Net), and ...
4
votes
0
answers
173
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 ...
2
votes
3
answers
592
views
Test Data in a Distributed System
A question that has been vexing me lately has been about how to effectively test (end-to-end) features in a distributed system. Particuarly, how to effectively manage (through time) test data for ...
1
vote
3
answers
161
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 ...
4
votes
2
answers
2k
views
Unit Tests work but there are still bugs?
Brief History
I am new to Automated Unit Testing and Mocking objects world; previously we used to do Unit Testing (including Integration Testing and we mistakenly referred that as Unit Testing) ...
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.
...
6
votes
2
answers
2k
views
Functional testing and Acceptance testing leading to redundant code
What I know is:
A Functional test aims to test a single component (like a WebApp's Controller) from the point of view of the developer. => Did I achieve all the requirements to make it work well?
An ...
7
votes
4
answers
844
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) ...
3
votes
1
answer
5k
views
Difference between functional test and integration test
I am deeply confused the difference. I've read so many definitions and they always explain functional test as testing the requirement is satisfied. Well, that's just rephrasing the name functional ...
12
votes
6
answers
2k
views
We are spending more time implementing functional test than implementing the system itself, is this normal?
Basically, we have three main projects, two of them are web services, and the other is a web application. While I'm satisfied with covering as much as we can of our web services with functional tests (...
7
votes
3
answers
1k
views
Functional testing before code checkin
I am working on a project with legacy code where it does not have much code coverage. One of the idea to improve that is to enforce a rule that each code check-in must have test, not only test but ...
2
votes
1
answer
275
views
Link between tests and user stories
I have not see these links explicitly stated in the Agile literature I have read. So, I was wondering if this approach was correct: Let a story be defined as "In order to [RESULT], [ROLE] needs to [...