SoapUI Beginner Tutorial 14 - How to create SetUp and TearDown in SoapUI
У вашего броузера проблема в совместимости с HTML5
Today we will learn:
--------------------------
1. What is SetUp and TearDown
2. Why to use it
3. How to use SetUp and TearDown scripts in SoapUI
4. How to set SetUp and TearDown with groovy scripts
Setup - runs before running the element in context
Teardown - runs after running the element in context
groovy code to set and get setup and teardown scripts
--------------------------------------------------------------------------
testRunner.testCase.testSuite.project.getTestSuiteByName('TestSuite1').getTestCaseByName('TestCase1').setSetupScript('log.info "setup"')
testRunner.testCase.testSuite.project.getTestSuiteByName('TestSuite1').getTestCaseByName('TestCase1').setTearDownScript('log.info "teardown"')
log.info (" -- "+testRunner.testCase.getSetupScript());
log.info (" -- "+testRunner.testCase.getTearDownScript());
groovy code can be given at project load script to load setup and teardown scritps from file
--------------------------------------------------------------------------------------------------------------------------
def su = new File("setup.txt").text
def td = new File("teardown.txt").text
project.getTestSuiteList().each { testSuite -
testSuite.getTestCaseList().each { testCase -
testCase.setSetupScript(su)
testCase.setTearDownScript(td)
}
}
_______________________________________________________
SoapUI Playlist -
https://www.youtube.com/playlist?list=PLhW3qG5bs-L-Bt9T_bnyflQ0Te4VgFhKF
Like on Facebook - https://www.facebook.com/automationstepbystep/
Subscribe on:
Youtube - http://youtube.com/automationstepbystep
HIT SUBSCRIBE & BELL TO GET NEW VIDEOS
Become a member & get exclusive perks - Click the JOIN button
https://www.youtube.com/channel/UCTt7pyY-o0eltq14glaG5dg/join
________ ONLINE COURSES TO LEARN ________
https://automationstepbystep.com/909-2/online-courses/
------------ UI TESTING ------------
Selenium Beginners - https://bit.ly/2MGRS8K
Selenium Java Framework from Scratch - https://bit.ly/2N9xvR6
Selenium Python - https://bit.ly/2oyMp5x
Selenium Tips - https://bit.ly/2owxc50
Selenium Builder - https://bit.ly/2MKNtlq
Katalon Studio - https://bit.ly/2wARFdi
Robot Framework - https://bit.ly/2Px6Ue9
------------ API TESTING ------------
Web Services (API) - https://bit.ly/2MGafL7
SoapUI - https://bit.ly/2MGahmd
Postman - https://bit.ly/2wz8LrW
General - https://bit.ly/2PYdwmV
Katalon Studio API Testing - https://bit.ly/2BwuCTN
------------ MOBILE TESTING ------------
Mobile Playlist - https://bit.ly/2PxpeUv
------------ CI | CD | DEVOPS ------------
Jenkins Beginner - https://bit.ly/2MIn8EC
Jenkins Tips & Trick - https://bit.ly/2LRt6xC
Docker - https://bit.ly/2MInnzx
------------ VERSION CONTROL SYSTEM ------------
Git & GitHub - https://bit.ly/2Q1pagY
------------ PERFORMANCE TESTING ------------
JMeter Beginner - https://bit.ly/2oBbtIU
JMeter Intermediate - https://bit.ly/2oziNVB
JMeter Advanced - https://bit.ly/2Q22Y6a
JMeter Tips & Tricks - https://bit.ly/2NOfWD2
Performance Testing - https://bit.ly/2wEXbLS
------------ JAVA ------------
Java Beginners - https://bit.ly/2PVUcXs
Java Tips & Tricks - https://bit.ly/2CdcDnJ
------------ MAVEN ------------
Maven - https://bit.ly/2NJdDRS
------------ OTHERS ------------
Redis- https://bit.ly/2N9jyCG
Misc - https://bit.ly/2Q2q5xQ
Tools & Tips - https://bit.ly/2oBfwoR
QnA Friday- https://bit.ly/2NgwGpw
Sunday Special - https://bit.ly/2wB23BO
Ask Raghav - https://bit.ly/2CoJGWf
Interviews - https://bit.ly/2NIPPxk
All Playlists - https://bit.ly/2LSiezA
Keep Learning,
Raghav
Website - https://automationstepbystep.com/
LifeCharger - http://lifecharger.org/
Udemy Courses - https://www.udemy.com/user/raghav-pal-3/
Facebook - https://www.facebook.com/automationstepbystep
Twitter - https://twitter.com/automationsbs
Youtube - http://youtube.com/automationstepbystep