• Building test suites, Test cases and Test steps in SOAP UI

  Levels :
  test step level
  test case level
  test suite level
  project level

  • Groovy script test step

 Write groovy code in groovy script test step

  • log object in SOAP UI

[Training Video - 2] [Groovy Introduction]

[Training Video - 2] [Groovy Introduction]

  • Info and error log
log.error "Some error"
log.info "help"

 Result:

[Training Video - 2] [Groovy Introduction]

  • Auto-saving project-Very Imp

 File-->Preference

[Training Video - 2] [Groovy Introduction]

  • Variable , if statements, loops in Groovy
// variables
// if statements
// loops

def x = 200   // integer
int a = 200
def y = "hello world"  // string
String b = "temp"
def z = "290.378"

if(x == 100){
	log.info "Value of x is "+x
}else{
	log.info "value of x is not 100 but it is "+x
}
for(def i=0;i<100;i++){
	log.info i
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2022-02-17
  • 2021-10-15
  • 2021-11-20
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2021-04-24
  • 2021-12-03
相关资源
相似解决方案