Questions tagged as 'testes'

1
answer

How to test the creation of an obj and method call in a servlet?

I am trying to create a web application using TDD, however, I am having a question about how to test the Servlet that processes the requests and calls the proper logic, I do not know how to do assert . @Test public void deveCriarInstacia...
asked by 11.06.2014 / 15:49
1
answer

How to test the locals on a render?

I have the following question, I make my tests using Ministest, however I have a problem when testing the locals of a render ... I do not know how to test, for example: Controller: def salvou render('cadastro/salvou', locals: {id: params...
asked by 30.06.2014 / 21:23
1
answer

How to test Web Service in Ruby on Rails

I'm having the following question, I'm doing a web- service server with my application ruby -on-rails , I'm using gem wash-out , I understood how it works and managed to get my web-service to run, but I'd like to know how to test my ser...
asked by 05.06.2014 / 15:55
0
answers

Create method to generate test entry?

Can we write code to make testing easier? For example: I have a list of people where each person can have a list of phones. I want to calculate the sum of the number of phones, or I want to check for duplicate phones in my list of people. It'...
asked by 13.12.2018 / 17:31
0
answers

Conflict with dependency 'androidx.annotation: annotation' when running Test Instrumented

I'm not able to run an Instrumented test that I created, using the espresso dependency an error message appears:    Conflict with dependency 'androidx.annotation: annotation' in project ': app'. Resolved versions for app (1.0.0-rc01) and tes...
asked by 13.12.2018 / 19:56
0
answers

Hamcrest - Is there any way to ignore fields when we use a file as the basis for response body validation?

Hello, I'm starting in the automation world and I was left with a question, in case I'm validating the POST insertion in a REST API that returns information to me in the response body, but some of these fields in the response body change (ID and...
asked by 08.11.2018 / 01:34
0
answers

Protractor with Cucumber does not run tests

Hello. I'm a beginner in cucumber protractor testing and I'm following some tutorials and in my case it does not work. I run my test but it only generates the Gherkin-based code I wrote. protractor protractor.config.js Execution result:...
asked by 01.11.2018 / 14:39
0
answers

How to write build script for different projects inside a solution (C #)?

I have an empty solution in the DDD standard, where each layer is a standard library project and I have also got my test project in a separate project. More or less like the image below: I'd like to generate a build script in order to c...
asked by 07.10.2018 / 15:14
0
answers

Test error with Selenium with Python 3.x

I'm doing a test on a simple page that I created and runs with flask just for testing, I'm using Behave and Gherkin to create the cases. The error occurs when selenium has to fetch the form's field ID from a simple post inside the page's blog....
asked by 27.09.2018 / 15:00
0
answers

Problems running SonarQube

I can not run SonarQube, I'm having problems with the sonar module. Here is the log: Running SonarQube... wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftw...
asked by 13.09.2018 / 13:42