Skip to content

Instantly share code, notes, and snippets.

View rajendrapenumalli's full-sized avatar
:octocat:
Comeon we can do anything

Rajendra Prasad Reddy Penumalli rajendrapenumalli

:octocat:
Comeon we can do anything
  • Bangalore
View GitHub Profile
#To Launch FireFox Browser:
System.getProperty("webdriver.gecko.driver", "PathTo\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
#To Launch Chome Browser
System.getProperty("user.dir")+"//BrowserDrivers//chromedriver.exe");
WebDriver driver = new ChromeDriver()
1. The most used variables/ objects in SoapUI are:
1.1 log (object) – refer above
1.2 messageExchange (variable)
1.3 context (object)
1.4 testRunner (variable)
1.1. log (object) – Variable/Oject
Commonly used methods of log variable:
log.info
log.warn
And the groovy API docs:
http://groovy-lang.org/gdk.html
Useful Tutorials Present:
http://tutorials.jenkov.com/java-internationalization/simpledateformat.html
#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
@rajendrapenumalli
rajendrapenumalli / Sample WSDLs List
Last active January 30, 2017 04:25
Sample WSDLs List For Practicing Test Automation
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
@rajendrapenumalli
rajendrapenumalli / Refences for SOAPUI Automatio
Last active January 31, 2017 10:21
Refences for SOAPUI Automatio
#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
http://ss64.com/nt/run.html
@rajendrapenumalli
rajendrapenumalli / Steps to Make Scripts Open Source Version Compatible
Last active June 2, 2017 17:19
Steps to Make Scripts Open Source Version(SOAPUI Free) Compatible
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
Link to My Employee Web Service On
https://app.swaggerhub.com/api/1101001000/Test/1.0.0
@rajendrapenumalli
rajendrapenumalli / Important Notes About Web Services
Created January 30, 2017 04:28
Important Notes About Web Services
Exploring capabilities of Service:
1. without access to source code,
2. By reading documentation,
3. through network traffic inspection