Questions tagged as 'testes'

1
answer

What is an automated test?

Looking at it, the term in question seems to me essential in the development routine, so simply, what is an automated test and what are the advantages? if possible a practical example of how to do them.     
asked by 06.10.2017 / 14:28
3
answers

Automation of web page tests

I would like the tooltip to perform the recording of the data entry on the page. I have already used the Selenium IDE , Selenium Web Driver . I saw that there is iMacros . I'm programming in JSF, Java and Primefaces. My problem is this, I...
asked by 27.03.2014 / 14:59
1
answer

How to test the service layer

I'm developing a multi-layered and multi-module web design. For the persistence layer I am using JPA 2.1 and hibernate 4.2 and for the JUnit 4 tests. In this architecture my project was divided into classes: GenericDAO (interface); Generic...
asked by 19.01.2015 / 01:21
3
answers

How to test the Service layer in a web service application, using mockito and junit

I have a class of services that will receive a dependency injection of an object responsible for the persistence layer. In this service class are all my methods that will respond to the REST call of the web service. The problem is: I would...
asked by 06.09.2014 / 17:12
0
answers

How to make a mock in an android class at runtime?

I'm having a hard time testing, I was wondering if there is a possibility to simulate a custom return in a runtime method example: @RunWith(JUnit4.class) public class TesteSmile { UserAndPass userAndPass = new UserAndPass(); @Rule...
asked by 07.08.2018 / 19:14
0
answers

How to test name-based virtual servers / SNI on a local machine?

I am migrating from Apache pro nginx, and a wildcard certificate ( wildcard certificate - a single certificate for multiple domains) to SNI . I would like to test the new configuration locally (preferably via Vagrant - my server uses FreeBSD a...
asked by 07.07.2014 / 21:05
2
answers

Working with a DateTime instance without the time information

My tests had been running successfully, when "by magic" one of them began to fail: var data1 = DateTime.Now.AddDays(1); ...processos ...processos var data1 = DateTime.Now.AddDays(1); Assert.Throws<DataException>(() =>...
asked by 21.11.2015 / 02:24
1
answer

Get the most selected radio input with JavaScript

I'm setting up a test, I'm just having the html structure done, I wanted to know how to do which input radio is most selected. Ex: The most selected was "A", so when sending the form, the image corresponding to most letters "A" and so on with th...
asked by 12.09.2015 / 15:20
2
answers

Is there a function that checks if a certain value is contained within a certain range?

Assuming that: x=120,00 limites.inferior<-80 limites.superior<-160 limites<-c(limites.inferior,limites.superior) I'm doing this with a logical test: x.int<-x>=limites[1] && x<=limites[2] Is there a function th...
asked by 15.03.2016 / 04:02
2
answers

How to effectively test and locate application security flaws?

I'm facing a serious problem with hackers and / or crackers on the site developed for a city hall. I tested SQL MAP on every page of the site. I tried the ftp lock, looked for files injected into the site, searched for viruses, malwares a...
asked by 16.09.2014 / 20:00