Most voted "testing" questions
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. There are more specific tags for types of tests, prefer them.
Learn more…228 questions
Sort by count of
-
4
votes1
answer99
viewsWhat is the usefulness of the "Add Fakes Assembly" feature?
Beyond utility, how can we implement it? I could not find documentation in Portuguese that would clarify this functionality much less examples of how to apply it.…
-
4
votes3
answers404
viewsHow do you test something "unstoppable"?
Testing certain components of a system is simple if that component does not have very relevant dependencies, such as a class like this: public class Data { private final String _field; public…
-
4
votes1
answer123
viewsWhen to do unit tests in Javascript?
As far as it is advantageous to do unit testing in the presentation layer, and, what would be the scenarios where unit testing in Javascript is advantageous? Only advantageous if you have…
-
4
votes0
answers207
viewsHow to make a mock in an android class at runtime?
I am having a certain difficulty in the tests, I wanted to know if there is a possibility to simulate a custom return in a method at runtime example: @RunWith(JUnit4.class) public class TesteSmile {…
-
4
votes2
answers2567
viewsJunit Eclipse Error: "No test found with test Runner Junit 5"
I’m not being able to run my tests in Eclipse, below is a simple test that doesn’t work: import org.junit.Assert; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class…
-
3
votes0
answers182
viewsHow to filter the scenarios that will run @Beforescenario?
I have a number of scenarios in Démoiselle-behave, and I want to filter those who should perform a method marked with @BeforeScenario. In the Cucumber-jvm, I do so: Funcionalidade: Acesso @web…
-
3
votes2
answers1762
viewsVisual Studio Test Explorer does not find the tests
I’m having a difficulty in Visual Studio 2013, Test Explorer is not loading the tests at any time, either after Build, or through Run Tests / CTRL+R, T. Does anyone have any clue what it might be? I…
-
3
votes2
answers2488
viewsTest coverage using Sonar
I wonder if anyone there has ever used the Sonar to do coverage analysis of tests, I have the following problem, I have two projects. Project A: It is implemented my tests using Selenium + Testng…
testing integration continuous-integration selenium sonarqubeasked 10 years, 4 months ago guilhermeNatan 33 -
3
votes1
answer125
viewsRegister load test does not persist in the database
I am using the jmeter and performed the following procedure: I wrote a script in a user registration feature; I extracted the Viewstates (because it is a feature with web flow pages); I ran the…
-
3
votes1
answer1258
viewsFrameworks for testing Android applications
There is no doubt that one of the main phases of the software development process is the testing phase. Aiming for this, being beginner in the testing area, even more for Android applications, I…
-
3
votes1
answer698
viewsTesting simultaneous queries on the REST server
I have a server REST/WebApi and wanted to test its performance with simultaneous consultations. My goal is to test, logically the performance, and also if the same is treating each request…
-
3
votes1
answer335
viewsGet the most selected radio input with Javascript
I’m putting together a test, I just have the html structure done, I wanted to know how to know which of the radio input is most selected. Ex.: Most selected was "A)" then when submitting the form,…
-
3
votes2
answers465
viewsIs there a function that checks if a certain value is contained in a certain range?
Supposing: x=120,00 limites.inferior<-80 limites.superior<-160 limites<-c(limites.inferior,limites.superior) I am performing this procedure with a logical test: x.int<-x>=limites[1]…
-
3
votes2
answers783
viewsDo I need to do unit testing of the system entities?
I am working on a project and participating in a team , we were given the task of doing a series of tests with a system,testes de integração continua, testes unitários .... The point is that all…
-
3
votes2
answers403
viewsTDD in existing function (Django)
I need to learn more about TDD. What a test it should be to pass? The function already works, just wanted to know what would be a test? @login_required def create_contract(request, proposal_id): if…
-
3
votes2
answers253
viewsHow to work with a Datetime instance without the time information
My tests had been passing successfully, when "by magic" one of them started to fail: var data1 = DateTime.Now.AddDays(1); ...processos ...processos var data1 = DateTime.Now.AddDays(1);…
-
3
votes1
answer224
viewsHow to implement unit tests for Clipper?
I have a legacy system developed in Clipper, an old programming language, similar to C and which had discontinued support for at least 20 years, being maintained until today by the project xHarbour,…
-
3
votes1
answer1680
viewsC# SELENIUM - How to read elements of a web page by keyword mention
I’m creating a bot that searches a word in google and writes in a txt file all links found in the search I am currently trying to find a keyword on the search result page, store the links that…
-
3
votes1
answer49
viewsError running tests with proxy models in Django
I have a table Seller. https://github.com/rg3915/django-experience/blob/master/djexperience/crm/models.py#L109-L118 class Seller(Employee): objects = SellerManager() class Meta: proxy = True…
-
3
votes1
answer201
viewsError accessing dao class by test class
I have the following error, when accessing a dao class of a test class: java.lang.Nullpointerexception This is the controller method: @Post("/consultar_lancamento/{codLancamento}") public int…
-
3
votes2
answers1591
viewsShow the runtime of an algorithm in milliseconds in python?
So far only found questions that show seconds. I would like to find in Milliseconds. Follow the code I tried: import time start = time.time() def firstDuplicate(a): dic={} for x in a: if(x in dic):…
-
3
votes2
answers124
viewsUnit tests for Pipe tap() in Angular
I would like to test tap() inside my Pipe to cover this code snippet, just missing it so that I reach 100% test coverage. fromEvent(this.input.nativeElement, 'keyup') .pipe( debounceTime(150),…
-
3
votes1
answer89
viewsHow to delete all Mongodb Collections in Laravel
A good practice in TDD is to keep the database clean between tests. For this, Laravel uses the Trait RefreshDatabase. However, this still doesn’t work for the Mongodb database. My idea is to delete…
-
3
votes1
answer438
viewsWhen to perform e2e testing on your application?
I am starting in e2e (end-to-end) testing, specifically in projects Vuejs with Spectron and Nightwatch. This question will not have code, because my doubt in this case is not with them, I am able to…
-
3
votes1
answer56
viewsHow to write tests for an External API call?
I am researching about Unit Testing and TDD and wanted to apply this to some scripts I have developed. The issue is that these scripts create data on an external service by calling API methods, for…
-
3
votes1
answer55
viewsHow to cover using Mock and C#?
I need to cover for the method example below: public int GetQtdCart() { int qtCart = 0; using (var db = new SfrEntities()) { qtCarteira = db.Set<Contract>().Select(x =>…
-
3
votes1
answer169
viewsWhat is the difference between "test" and "spec" in automated testing?
The question and doubts below address Node.js, Typescript and Javascript. I don’t know if the concepts below apply to other programming platforms/ languages. I am studying about automated tests (AT)…
javascript node.js typescript software-engineering testingasked 3 years, 10 months ago Cmte Cardeal 5,299 -
2
votes3
answers3415
viewsHow to interpret the use of the CPU through the monitor of the options of Android developers?
Android has in its developer tools the option to display CPU usage. Would you like to know how to interpret them? Or, some other app which performs the same type of service for analysing the…
-
2
votes1
answer188
viewsPrintscreen on Selenium with popup
I wonder if it’s possible to take one printscreen of the screen with a popup for example in the Selenium IDE. The function captureEntirePageScreenshot does the Printscreen, however, only from the…
-
2
votes1
answer60
viewsAndroid Test - Call Method
I wonder if in android Unit test would have the possibility to call isolated methods of code, or if only calling activitys, buttons... I searched several places and found nothing talking about…
-
2
votes2
answers290
viewsAutocomplete for forms
Do you know of any web tools in Chrome or Firefox that auto-complete forms with random text for testing? I have a form of 35 fields and each time I submit for tests, I have to complete it again.…
-
2
votes1
answer51
viewsTesting Jasmine in separate files without breaking the describe?
I want to organize my javascript tests in separate files, but these can be part of a common module. For example: describe("Controllers", function () { describe('Move list Controller', function () {…
-
2
votes0
answers260
viewsAutomated interface testing with Jenkins
I’m using Casper.js to test the interface of my application and wish to integrate with the Jenkins, but in one of the tests it is necessary to upload and download files (.xlsx and . zip). How do I…
-
2
votes2
answers1371
viewsSelenium, how do you control the speed of the test run?
Creating automated C# testing using Selenium, I want to know how to control test execution speed?
-
2
votes0
answers48
viewsHow to call web service on test with MONKEY
I am using MONKEY for stress testing, but my application has several calls to webservices in several activitys. The problem is that Monkey never arrives at activitys that are opened after web…
-
2
votes1
answer331
viewsCreate a web application that runs Junit test cases on java files that will be submitted by a page?
I’m trying to create an application that looks like a judge online, but all I want is that after submitting a java file through an html or jsp page, the application runs a certain Junit test case on…
-
2
votes0
answers84
viewsFacebook page does not open with click - Nightwatch
Hello, I recently started working with Nightwatch.js. I want to test the facebook icon. The code is this: module.exports = { "Facebook link" : function (browser) { browser…
-
2
votes2
answers895
viewsJunit unit test for default system routines
I have a Java code that checks if there are standard categories registered in the database, if yes it returns true, if he doesn’t return false. public boolean validaEntradaDeDadosPadrao() {…
-
2
votes4
answers2850
viewsSelenium cannot find by id
I’m running a test with testNG along with Selenium org.openqa.selenium.By Test, do this search: driver.findElement(By.id("idRoleCheck:0")).click(); Gives the following error:…
-
2
votes2
answers441
viewsShould I cover private methods in unit testing?
In my unit testing coverage, private functions are not tested. I don’t know if this is the right route. Should I test my private methods? All? No. NET, the attribute InternalsVisibleTo makes it…
-
2
votes1
answer1131
viewsIs there a difference between "Test Team" and "QA Team"?
I don’t know much about tests. Sometimes I heard people talking ...the QA team (Quality Assurance)... As far as I know, QA is an environment and not a team. That’s why I didn’t understand. Doubts…
testingasked 7 years, 1 month ago igventurelli 4,441 -
2
votes1
answer1135
viewsWhat is the difference between regression testing and end-to-end testing
I would like to know the difference between these two tests, regression testing and end-to-end testing. I looked in some places but found material more related to TDD, and both look a little bit.…
-
2
votes0
answers129
viewsHow does the implementation test work?
I was reading the reply of Maniero regarding software testing and had a point in the reply that left me with doubt, so I would like a more detailed explanation regarding. The quote that left me…
-
2
votes1
answer2219
viewsAssertThat method and use of Matcher
To perform unit tests using the method assertThat in Junit, you need to pass an object Matcher as a parameter. public void assertThat(Object o, Matcher matcher){ ... } An example of using passing an…
-
2
votes1
answer77
viewsphpunit no phpstorm
I’ll run unit tests for phpunit in my stage and I can’t put it in the project. I added the file composer.json and when I will try to add dependency phpunit/phpunit, it presents the following error:…
-
2
votes1
answer515
viewsIntegration Test . Net Core 2.2
I’m creating an integration test using microsoft Tuto Integration tests in ASP.NET Core public class WebAppFactory : WebApplicationFactory<Startup> { protected override void…
-
2
votes1
answer323
viewsTesting CRUD made in Laravel with phpunit
Expensive, I have a simple CRUD, appearing only the description field on the screen, and the code is generated by the database. I want to put together a script to test: - inclusion - see if it…
-
2
votes1
answer38
viewsWhy does Phpunit not consider early return in method in code Coverage?
I have a code that I am testing with Phpunit being that in the tested method there is an early return with null under certain condition. However, Phpunit does not consider this part of the code to…
-
1
votes1
answer86
viewsHow to test a Singleton class in Ruby?
I’m using require "Singleton" to make a certain class only be instantiated once. However, when running rspec tests, I get the following error: Nomethoderror: private method `new' called for…
-
1
votes1
answer885
viewsGood Testing Practices
What are the best practices when it comes to software testing regarding file entry and output? Is there any effective way adopted in the market? It is good to come with some prior knowledge, or it…
testingasked 10 years, 5 months ago Clarissa Lippi 19