Posts

Showing posts from February, 2019

Re-Use your maven project into another maven project

Image
Hello World, Once I needed to use one of my ongoing java+maven projects into another java+maven project as its dependency.  So I decided to publish the work, that I did to solve my problem. So, just to give you a quick picture of the problem, the following is the flow/requirement: So to use your already existing java+maven project, you have to just add the reference of it in your new project's POM.xml file as follows:             And, in your existed project POM file add a 'Maven Jar Plugin' under build                And,  Now you build/Install("mvn clean install") your existing project to get the jar in the following directory location: "path_to_m2/repository/groupID /artifactID /version /* -test-jar.jar" and you are ready to go.

A crawler for serenity reports

Image
Hello World, In this article, we will see and build a crawler for the serenity reports. #POINTs to be discussed Beautifulsoup module for the serenity's index.html Integration/Execution of crawler Crawled data insertion into MongoDB Now, Serenity has 2 versions, v1 and v2 and each version are having a different index.html design. : Serenity-v2 report summary screenshot(Covered) : Serenity-v1 report summary screenshot (Not covered in this crawler) And we will see the summary extraction for only serenity-v2 HTML. In the crawler, I have divided all crawler into 4 sections/parts: - Index file collection - Project Meta extraction - Report Summary extraction/Scrapping - Formatting the scenario outcomes So, let's discuss each section of the crawler, what exactly they are accomplishing. :: TODO here is the crawler Code:  https://github.com/ashusc/crawlers/SerenityCrawler.py ###################### # Import section # #################...

Test Automation Infrastructure

Image
Hello World, Test Automation infrastructure, When we move towards the automation in testing, then it's better to have a good automation infrastructure to support our automation testing CI/CD and reporting. Now, you might ask questions like, - Why we would be needing an infrastructure in automation? - Is it necessary to have an infrastructure? - How it will be helpful? - Will it be useful? - Will it require maintenance? and a lot of question like above. So let's discuss these questions. Why we would be needing an infrastructure in automation? Well before answering this question directly, we need to understand what does infrastructure mean?  So Infrastructure is defined and structured approach to deal with any technological problem, hence infrastructure is a solution to solve the technological integration and its management. Is it necessary to have an infrastructure? So, although it is not necessary to have proper infrastructure, but consider this, If we would b...