WebServices Testing | Web Services Testing | SOAP | REST Service| SoapUI Tool | SOA | Service Oriented Architecture | Groovy Script

WebServices Testing | Web Services Testing | SOAP | REST Service| SoapUI Tool | WebServices Testing | SOA | Service Oriented Architecture

For More detailed information about WebServices Testing, pleas enroll classes with H2K Infosys by visiting www.h2kinfosys.com and submit your contact information.

Enrolled students will receive full class notes, more detailed live class, practical sessions on how to work on web services testing using SoapUI tool, Validating XML , XML Tags and more.. with Interview Questions.

1) What is WebServices?

  1. 1.      SOA = Service Oriented Architecture and Terminology
    1. What is SOA?
  2. SOA and Terminology
  3. WSDL Definition
  4. JMS / Message Queuing
  5. Services – Definition
  6. Application Components – Definition
  7. Discussion: How could you effectively test services?
  8. GUI vs GUI-less testing
  9. Multi-level Validation
  10. The Importance of Service Testing

2) What we do as a QA Tester in Web Services Testing?

3) What is SOapUI tool?

4) What is SOAP call

5) What is REST service

6) What is WSDL file ? OR URL ?

7) What is end point in WebServices?

8) What is request xml and Response XML?

9) Can we write test cases in SoapUI Tool?

10) What is Groovy Script ?

11) What is test case, test suite, adding steps , adding assertions , adding property transfer,   writing Groovy script in SoapUI Tool

12) Supports WSDL, JMS, HTTP, REST, databases and more out of the box

13)

 

 

 

 

 

 

GROOVY SCRIPT
/* ********************************************************************************
* Writing log to the external file C:\SoapUIAutomation.log

Change Log:
Developer Name Date NOTES

OpenLogFile()
WriteLog()
CloseLogFile()
* ********************************************************************************************************/

import com.eviware.soapui.impl.wsdl.testcase.*;
import com.eviware.soapui.support.GroovyUtils;
import groovy.sql.Sql;
import com.eviware.soapui.SoapUI;
import com.eviware.soapui.model.testsuite.*;
import com.eviware.soapui.model.ModelItem;
import com.eviware.soapui.support.UISupport;
import com.eviware.soapui.support.GroovyUtils.*;
//import com.eviware.soapui.support.action.support.AbstractSoapUIAction
//import com.eviware.soapui.model.support.TestRunListenerAdapter
//import com.eviware.soapui.model.testsuite.TestRunner.*;
//import com.eviware.soapui.model.testsuite.TestRunner.Status;
//import com.eviware.soapui.model.testsuite.TestRunner.testCase.*;
//import oracle.jdbc.driver.OracleDriver;
class CommonClass {

// ** Logging **//
def logDirectoryName;
def logFileName;
def enableFileLogging = 1 as int;
def fn;
def FileName;
def dateToday;
def todayPlus30Days;

/****************************************************************
Constructor
****************************************************************/

public CommonClass(){
//logDirectoryName = context.expand( ‘${logDirectoryName}’ )
//logFileName = context.expand( ‘${LogFileName}’ )

logDirectoryName = “C:/Data/”
logFileName = “AutomationTestingResults”

def fileExt = “.log”
fn = “$logDirectoryName$logFileName$fileExt”;

SoapUI.log (“MyCommonClass Class: filename = ” + fn + ” & enableFileLogging= ” + enableFileLogging)

def dateFormat = new java.text.SimpleDateFormat(“yyyy-MM-dd’T'HH:mm:ss”)
dateToday = dateFormat.format( new Date() )
todayPlus30Days = dateFormat.format( new Date()+30 )

}

/****************************************************************
Function Name: OpenLogFile
Input Arguments: None
Description: To create a file name and open the file , so that it will be ready to write any information.
NOTE:
****************************************************************/
def OpenLogFile() {
if (enableFileLogging != 0) {
FileName = new PrintWriter( new FileWriter(fn));
}
}

/****************************************************************
Function Name: WriteLog
Input Arguments: message that we want to write into the log file
Description: We can write the required message that we want to write into the log file.
NOTE:
****************************************************************/
def WriteLog( message ){
if (enableFileLogging != 0) {
def sdf = new java.text.SimpleDateFormat(“yyyy-MM-dd-HH-mm-ss”);
def myTime = sdf.format( new Date() );
def Space = ” : ”
def msg = “$myTime$Space$message”;
FileName.println(msg)
FileName.flush();
}
}

/****************************************************************
Function Name: CloseLogFile
Input Arguments: None
Description: After writing all the messages in to the log file, at the end , we need to close the log file.
NOTE:
****************************************************************/
def CloseLogFile(){
if (enableFileLogging != 0) {
FileName.flush();
FileName.close();
}
}

}

// End of class