This file contains hidden or 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
File file = new File("E:/Example.txt") | |
//Reading Files | |
1.Reading File content as a String | |
log.info file.text | |
2. Reading File content line by line | |
file.eachLine{ | |
log.info it; |
This file contains hidden or 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
#Getting Cookie Header from Headers: | |
def headerValue = testRunner.testCase.getTestStepByName("LoginOperation").httpRequest.response.responseHeaders["Set-Cookie"][1] |
This file contains hidden or 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
Exploring capabilities of Service: | |
1. without access to source code, | |
2. By reading documentation, | |
3. through network traffic inspection |
This file contains hidden or 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
Link to My Employee Web Service On | |
https://app.swaggerhub.com/api/1101001000/Test/1.0.0 |
This file contains hidden or 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
1.Avoid using events for cookie sharing: | |
instead create Property @ project level and use that prioperty as header for each step to share the cookie | |
2.Avaoid using Data Sources : | |
instead use jsonslurper and get array of values and loop the steps | |
3.Avoid Multiple Environments instead load data freom csv conditionally | |
Create a variable to specify environemnt @project level | |
conditionally load the data from properties file | |
4.Avoid External Libraries | |
Open Source Limitations |
This file contains hidden or 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
http://ss64.com/nt/run.html |
This file contains hidden or 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
#Refences for SOAPUI Automation: | |
http://soapuirecipes.blogspot.in/2011/09/how-to-create-your-own-run-command.html | |
http://soapuirecipes.blogspot.in/2009/11/run-command-shortcuts-i-hope-there-are.html | |
http://www.robert-nemet.com/2011/06/soapui-extending-tool-adding-groovy.html | |
http://charithaka.blogspot.in/2011/01/ws-addressing-with-soapui.html | |
http://soapuirecipes.blogspot.in/ | |
http://stackoverflow.com/questions/26500006/how-set-timeout-for-one-test-step-in-soapui | |
http://tutorials.jenkov.com/soap/index.html | |
http://tutorials.jenkov.com/maven/maven-tutorial.html |
This file contains hidden or 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
http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl | |
https://market.mashape.com/fyhao/weather-13# | |
https://market.mashape.com/fayder/rest-countries-v1#search-by-subregion |
This file contains hidden or 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
#Parsing JSOON Response Using Slurper: | |
import groovy.json.JsonSlurper | |
def response = messageExchange.response.responseContent | |
def slurper = new JsonSlurper() | |
def json = slurper.parseText response | |
assert json.trends.'2012-08-29 08:20' != null | |
assert json.trends.'2012-08-29 08:20'.size == 8 |
This file contains hidden or 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
And the groovy API docs: | |
http://groovy-lang.org/gdk.html | |
Useful Tutorials Present: | |
http://tutorials.jenkov.com/java-internationalization/simpledateformat.html |