Posts

Chrome Automation Using API

Image
Chrome Automation Using API in SoapUI Objective - Automating Chrome using SoapUI (Nope, not using Selenium in groovy) Introduction - Selenium is world known for automating web browsers but do you know its architecture uses REST APIs to automate it? So, if it uses Rest API, can we automate it using SoapUI or Postman tool? Well, the shocking answer is Yes (If you aren't shocked, I was, when I learnt this.). GitHub Project -  https://github.com/sumeet0420/chrome-automation-through-api Tools used - SoapUI (Can be transformed to Postman) Project Overview -  Prerequisite - Chromium driver executable file should be downloaded. Note: The executable file should be kept in the same path as the project. If not, kindly modify the "chrome.bat" file. The logs are captured and kept in the file chrome.log.  This SoapUI project has the following steps  Groovy Script:   A few line of codes in groovy to start the chrome driver. The script first...

Report Generation in SoapUI using Extent Report

Image
HTML Report Generation in SoapUI using Extent Report Objective - Today we will see how to overcome the SoapUI limitation of report generation. This option is available in the SoapUI Pro (ReadyAPI) tool but unfortunaely note available in free version. We will use the inbuilt Groovy script option coupled with the Extent Report jar to overcome this limitation. This script has been placed in the Teardown Script Section at the Project Level. The Extent Report jars and TestNG jars need to be placed inside the SOAPUI_INSTALLATION_PATH\bin\ext and can be downloaded from their official site -  Extent Report Official Site  and TestNG Official  respectively. Stratergy Used  Based on the various assertion we have implanted in the various test step, the assertion result and report output can be categorized in 3 parts  Assertion Status - SUCCESS, Report - Pass Assertion Status - FAIL, Report - Fail Assertion Status - UNKNOWN, Report - Warning ...