Questions tagged [testing]

Software testing is any activity aimed at evaluating an attribute or capability of a program or system and determining that it meets its required results.

For better answers, any questions about Software Quality Assurance & Testing should be asked on SQA - https://sqa.stackexchange.com/. You can ask only programming related questions on Stack Overflow and that too can be asked on SQA

From Wikipedia:

Software testing is an investigation conducted to provide developers and stakeholders with information about the quality of the product or service under test. Software testing can also provide an objective, independent view of the software to allow the business to appreciate and understand the risks of software implementation.

Test techniques include, but are not limited to, the process of executing a program or application with the intent of finding software bugs (errors or other defects).

Software testing can be stated as the process of validating and verifying that a software program/application/product:

  1. meets the requirements that guided its design and development;
  2. works as expected;
  3. can be implemented with the same characteristics.

There are white-box-tests and black-box-tests.

A white-box test verifies the structure of a software product whereas the block-box test validates the requirements.

Software testing, depending on the testing method employed, can be implemented at any time in the development process. However, most of the test effort occurs after the requirements have been defined and the coding process has been completed. As such, the methodology of the test is governed by the software development methodology adopted.

The following types of tests are commonly used to denote the level of detail the tests are focused on:

Agile and Test Driven Development

Agile development model places added emphasis on testing. Test driven development advocates writing a test for a feature before developing the actual feature. Additional information:

Shift-left testing

Shift-left testing is an approach to software testing and system testing in which testing is performed earlier in the lifecycle (i.e. moved left on the project timeline).

49776 questions
16
votes
1 answer

Go example won't run

I'm trying to add an example to a package, and run the example via go test, however the example is never run. For example, see this gist: https://gist.github.com/85469ecc65bb5bb85857 The gist has example_test.go: package cow_test import ( cow…
phemmer
  • 6,882
  • 3
  • 33
  • 31
16
votes
3 answers

Fetching values from email in protractor test case

I need to test a protractor test case in which a user signs up, receives an email, goes to the link provided in the email and fills up his/her details in activation signup form. The problem is how can I get the redeem token from the email. My email…
Ashish Gaur
  • 2,030
  • 2
  • 18
  • 32
16
votes
2 answers

How to test django model method __str__()

I trying to test __str__ method, and when trying to access it in my test it returns my model instance (I think it is) def test_str_is_equal_to_title(self): """ Method `__str__` should be equal to field `title` """ work =…
gintko
  • 697
  • 8
  • 16
16
votes
3 answers

testing in functional programming

in object oriented programming i have objects and state. so i can mock all dependencies of an object and test the object. but functional programming (especially the pure) is about composing functions it's easy to test function that doesn't depend on…
piotrek
  • 13,982
  • 13
  • 79
  • 165
16
votes
2 answers

Non-angular page opened after a click

I'm trying to implement the following test scenario: perform a click on a logo on the page assert there is a new browser window opened (tab in Chrome) and check the current URL The problem is that the page opened in a new browser window is a…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
16
votes
3 answers

Good automated system testing framework in python

I am looking for good End to End testing framework under python, where the tests can be written in python and managed in a comfortable way. I know there are many unit testing frameworks, but I am looking for bigger scope, something like test…
GabiMe
  • 18,105
  • 28
  • 76
  • 113
16
votes
6 answers

java.lang.NoClassDefFoundError: org/objenesis/ObjenesisStd with Mockito

I don't know why I have that error with mockito java.lang.NoClassDefFoundError: org/objenesis/ObjenesisStd at org.mockito.internal.creation.jmock.ClassImposterizer.(ClassImposterizer.java:36) at…
Abder KRIMA
  • 3,418
  • 5
  • 31
  • 54
16
votes
3 answers

Limiting parallel browser instance in Karma

I want to run some tests with Karma using multiple browsers. However, the tests are integration tests that interact with the database (get and update data). Since the same tests are run in multiple browsers, they all interact with the same test…
ckarras
  • 4,946
  • 2
  • 33
  • 37
16
votes
4 answers

GUI testing with Instrumentation in Android

I want to test my Android applications UI, with keyevents and pressed buttons and so on. I've read som documentation that Instrumentation would be able to use for this purpose. Anyone with expericence with using Instrumentation for UI testing?
Sara
  • 3,733
  • 6
  • 26
  • 30
16
votes
2 answers

Mutation testing tool for Python 2.7

While writing another unittest in Python and after learning about multiple testing methods, I got curious how many mutants would be killed if I performed mutation testing on my code. The problem is that I use Python 2.7 and the only tool I found is…
16
votes
4 answers

How can I perform a double click on an element with Protractor?

I would like to double click on an element but I could not find a way to do this in the document API. I found some references dating back to 2013 but I know things have changed a lot. Can someone help and tell me how I can perform a double click.…
Alan2
  • 23,493
  • 79
  • 256
  • 450
16
votes
7 answers

Automating unit tests (junit) for Eclipse Plugin development

I am developing Eclipse plugins, and I need to be able to automate the building and execution of the test suite for each plugin. (Using Junit) Test are working within Eclipse, and I can break the plugins into the actual plugin and a fragment plugin…
rcreswick
  • 16,483
  • 15
  • 59
  • 70
16
votes
1 answer

Can we run two thread groups parallely in a single test plan in Jmeter?

can we run two thread groups parallel by creating a single test plan in Jmeter ?? Example: I have to add 2 test cases in a test plan, which has to be executed in parallel and can we combine this test plan with any other test plan to be executed…
user3743995
  • 163
  • 1
  • 1
  • 4
16
votes
5 answers

How to run a single cucumber scenario in Intellij?

I have a simple problem - I want to run a single Cucumber scenario, but I can't seem to find any option/configuration for that. I have 5-6 scenarios and I can set up configurations to run all tests, but It takes too much time, when I am correcting…
user3651806
  • 161
  • 1
  • 1
  • 3
16
votes
2 answers

Testing STDIN in Ruby

I'm currently trying to test a basic method that receives some input from the user (gets) and outputs it (puts). After a bit of research I found a good way to test the standard output stream which is the below: def capture_standard_output(&block) …
Maikon
  • 1,382
  • 16
  • 16
1 2 3
99
100