Questions tagged as 'groovy'

1
answer

Log4j - Create several logs but write randomly in only one when using parallel execution

The problem I have is that when using Log4j during a parallel execution of several processes, this creates a log for each of the processes, but writes all the output in one of them randomly. It is written in groovy. This is my .properties...
asked by 22.06.2016 / 12:28
7
answers

What is try .. finally used for without the catch clause?

I maintain an inherited system, and I have seen in many parts a block similar to the following: try { // aqui codigo } finally { // mas codigo aqui } My question is: What is the function of making a try .. finally , without the b...
asked by 12.02.2016 / 18:30
1
answer

Differences between Maven and Gradle

I'm starting with Gradle and I was wondering what are the main differences with Maven when starting a new project in groovy / grails. Note: The question can be considered as opinion and be moderate, I would appreciate it if you help me unders...
asked by 17.09.2016 / 21:18
2
answers

Rescue the text of an input with Java Selenium

Good afternoon community, I'm trying to rescue the text of the following element: <table class="GroupsTable"> <tbody> <tr> <td> <input type="checkbox" name="chk" value="1"> " texto no s...
asked by 29.11.2018 / 16:11
1
answer

Grails method update, instance.properties = params

What is the properties method for? Quick example def update(){ def albumInstance = Album.get(params.id) albumInstance.properties = params albumInstance.save(flush:true) redirect(action: "show", id: albumInstance.id) }     
asked by 10.02.2017 / 00:02
1
answer

childNodes I need to get the value of the child nodes

The reason for my question is that I need to know how to obtain the information that has the child nodes, since I am consuming a web service and at the moment mapping the xml does not map it as I wish since I want to have the data of the xml sep...
asked by 26.09.2017 / 23:19
0
answers

How to do set value in field waterfall type or double dropdown list in jira groovy

GOOD NIGHTS I'M WORKING WITH JIRA 7 AND GROOVY I NEED TO SET ONLY SOME VALUES WHEN I SELECT A DETERMINED ITEM OF THE MAIN COMBO there is an example if in the detection process you select Peer Review by default you must change the parent combo...
asked by 09.08.2018 / 01:39
1
answer

Can not cast object 'true' with class' java.lang.Boolean 'to class' groovy.util.slurpersupport.GPathResult

I'm launching a jobs of Jenkins that in turn launches a groovy call. This groovy call works perfectly, but not since Jenkins. The script is: import groovy.util.XmlParser import groovy.util.XmlSlurper import groovy.util.slurpersupport...
asked by 05.06.2018 / 12:09
1
answer

Looking for value in an xpath - groovy

Very good, I currently have the following xml file (person.xml)           Jane       Smith       31          Juan     Smith     31 In the process that I am doing, I know what the value of var will be and what I need to obtain is the value o...
asked by 04.06.2018 / 16:48
0
answers

Connect jdbc sqlserver in soapui MockService

When making a connection to the sql server in a MockService using soapui version 5.4 I get the following error:    INFO: groovy.lang.MissingPropertyException: No such property:   connectionUrl for class: Script1 The code I have is the fol...
asked by 28.04.2018 / 00:17