This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Date": "2022-04-01T00:00:00Z", | |
"Number": 1 | |
}, | |
{ | |
"Date": "2022-04-01T00:00:00Z", | |
"Number": 1 | |
}, | |
List<AllDataFromJson> AllDataFromJson = JsonConvert.DeserializeObject<List<MyObject>>(json); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I have used this in SOAPUI for Groovy scripting | |
def date = new Date() | |
Calendar calendar = Calendar.getInstance(); | |
calendar.setTime(date); | |
def day = calendar.get(Calendar.DAY_OF_WEEK); | |
def map=[ | |
1:"Sunday", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remember script log and log-output are different things. The below script is for the log-output which comes below the log-output | |
//Note that in ReadyAPI 2.1 you will need to use the following script: | |
import com.eviware.soapui.SoapUI | |
log.info("test") | |
//Writing to the log is executed in the separate thread, so it is need to wait some time to get all notifications. | |
sleep(1000) | |
def teststep = context.getCurrentStep() | |
def tesStepPanel = SoapUI.getDesktop().getDesktopPanel(teststep) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Groovy Script to run a test case steps in SoapUI | |
YOu can disable all steps apart from the Groovy step and paste the below code |