[Training Video - 2] [Groovy Introduction]

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

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

  • Groovy script test step

 Write groovy code in groovy script test stepui

  • log object in SOAP UI

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

 Result:code

  • Auto-saving project-Very Imp

 File-->Preferenceblog

  • 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
}
相關文章
相關標籤/搜索