30,342
questions
0
votes
0
answers
17
views
Append a node to a XML struktur as first child
I am trying to a add a created structure to an existing XML which I read in with XMLSlurper. With xml.append() it works, but it will be put at the end. How to insert at a specific position? It should ...
0
votes
1
answer
23
views
How to mock with Spock
I want to mock with Spock a method getEntity for the Spring ResTemplate
Product getProducts(ProductSearch request) {
Map<String, Object> queryParam = new HashMap<>();
queryParam.put(&...
0
votes
0
answers
13
views
Spring boot Java - Groovy unit tests failing during build time with this error -> Caused by: java.lang.ClassNotFoundException: Runtime
We have an API based on Spring boot Java whose unit tests are written in groovy
main files are in -> src/main/java
unit test files are in -> src/test/groovy
The build tool being used is gradle. ...
0
votes
0
answers
18
views
doStandardReverse only for some tables that don't exists in the Model
I am trying to use doStandardReverse using ODI SDK Groovy only for some tables that do not exist in the model.
I found the datastore created, but without attributes.
If I manually reverseengineer a ...
0
votes
0
answers
26
views
Micronaut multiple headers
How to pass multiple number of different headers in Micronaut Declarative client, using Map<String,String>, with [name:value] syntax?
@Header annotation requires fixed name, so It should be ...
0
votes
1
answer
17
views
Flowable 7.1.0 test cant find flowable.cfg.xml when test is run
i've built a flowable 7.1.0 groovy springboot gradle project, which works when i run manually. however I copied my test process into test/resources/processes and built a simple test, annotated my ...
0
votes
1
answer
34
views
+50
Parse XML Iteration node values in Groovy
I would like to parse the XML structure which contains iteration nodes,
In the end, I need to collect the respective values by validating the data in the XML.
The 'OrderHeaderPartnerType' node comes ...
0
votes
1
answer
22
views
Groovy Script Unexpected input ? def @ line , column
I'm trying to:
Conclusion=+def result = []; msg.get('OBX.1') ? def con =''; for(int i=1; i<=msg.count('OBX'); ++i) { con + ((msg.get('OBX.3', i)+ (msg.get('OBX.5', i) ) + ','}; msg.get('NTE.1') ? ...
-7
votes
0
answers
52
views
Having AND and OR in same condition, without parentheses [closed]
if((CaseType_c != null && CaseType_c != "INQUIRY" && CaseSubType_c !="SAMA_COMPLAINT") || CaseType1_c != null && CaseType1_c != "INQUIRY" &&...
-2
votes
0
answers
17
views
Save SOAPUI response as pdf with input variable name
I need your input on below ask, I did followed already existing links but getting confuse on those. here is my ask.
SOAPUI project will invoke an API which has one input as say "InvoiceNumber&...
-1
votes
1
answer
94
views
Spock Mock Not Working, Test Throws NullPointerException
I have a problem with mocking in the spock, my variabla systemTaskOptional is null, test throwing an error. Here is my code of test, and part of code with biznes logic, where is null throwing.
def ...
0
votes
0
answers
18
views
In readyApi can we dynamically update expected result of a Xquery Match Assertion using Script
In my response I have a tag which is a ID and gets updated depending on the changes we did for a template. Its a value lets say "test1" which got update to "test2" and my Xquery ...
0
votes
0
answers
48
views
Update a Google Sheet using Groovy script in Adaptavist ScriptRunner on an Atlassian Jira Cloud instance
community members.
I sincerely hope that one of you has tried solving this challenge, which is driving me up the wall.
My Objective
I need to update some cells in a Google Sheet associated with a Jira ...
1
vote
1
answer
38
views
Parse value from JSON Input message with special char format
I'm expected to read the value of where(key = Canonical message)
and the value format is combination of many fields where I expected the read 'casetTitle' value in the Payload section mentioned below ...
0
votes
1
answer
37
views
how to read each value from JSON array in Groovy
I am new to Groovy and trying to read each value from a JSON array.
logic I wanted to achieve through the loop.
Input JSON
{
"AUnit": "EA",
"Quantity": 2,
...