Forum Discussion
avidCoder
Super Contributor
( '${DataSource#Output_LoanTerm}' ) --> Value is 45
After this convert it into double like the below code:-
def data = 45 def newData = new Double(data).round(2)
printf("${newData}")
So, this will give you 45.0 as output and then
$['LoanTerm'] --> Value is 45.0
Match ( ${DataSource#Output_LoanTerm}) = $[LoanTerm]
Try this again and let me know.
If you are ok with answer. please don't forget to accpet as solution and kudos.
anagpal
6 years agoOccasional Contributor
Hi,
I tired but no luck :(
So where to add this code:
def data = 45 def newData = new Double(data).round(2)
printf("${newData}")
In excel or Assetion window (JSON Path Expression)