Skip to content
Elan Thangamani edited this page Jun 7, 2021 · 14 revisions

What is Idaithalam:

Idaithalam is a Cucumber feature file generation product.

As a user: You need to export the POSTMAN Collection and pass to Idaithalam. NO CODING at all

Currently It supports generate Feature files for POSTMAN Collection and Virtualan Collection and Excel format(Coming Soon). This will covert REST APIs based on POST, GET, PUT, DELETE and PATCH action as respective domain specific language which helps you to describe API/business behavior without the need to go into detail of implementation.

Steps to create POSTMAN Collection

  • Create a collection

  • Under the created collection, create a API request

  • Add the GET URL for the API testing

  • After providing the input information for the API, run the API by clicking 'SEND'

  • Once the API response is received, Save the API request via 'save example' in the postman

  • Repeat the above steps to create all the API request

  • Export the created API request/response as Postman collection

Auto Generated Feature file:

https://github.com/virtualansoftware/idaithalam-contract-testing-demo/blob/master/conf/virtualan-contract.feature

Demo POSTMAN Collection:

https://github.com/virtualansoftware/idaithalam-contract-testing-demo/blob/master/src/test/resources/idaithalan.postman_collection.json

Demo Code Base:

https://github.com/virtualansoftware/idaithalam-contract-testing-demo

How to Integrate:

  1. cucumblan.properties - Should be added in classpath
service.api=https://live.virtualandemo.com              # Service Endpoint URL
virtualan.data.load=idaithalan.postman_collection.json  # Collection file should be in CLASSPATH. added POSTMAN Collection  
virtualan.data.heading=Pet API testing                  # Collection file should be in CLASSPATH. added POSTMAN Collection  
virtualan.data.type=POSTMAN                             # Collection Type.  POSTMAN, VIRTUALAN, EXCEL

Multiple collection can be passed as ";" separated values for virtualan.data.load and virtualan.data.heading
  1. "conf" directory:
1. Should be created in the project root folder. 
2. Feature file will be Auto generated here. 
3. You can keep cucumblan.properties and Collection files in this location.

Example: 
https://github.com/virtualansoftware/idaithalam-contract-testing-demo/tree/master/conf 
  1. Code to Invoke the Auto Generation:
//Initiate the contract testing
//Generate feature file from POSTMAN Collection
//Execute and Generate the HTML Cucumber report
IdaithalamExecutor.validateContract("Pet API Production Checkout");

Used for API testing.

  • Most of the common use case, You can execute as Regression test suite for the test case executed manually via POSTMAN.
  • Run the testcase via POSTMAN and store the response as Example with response data in the POSTMAN for all the test cases that you had executed.
  • Export all the API request and Response as POSTMAN collection.
  • POSTMAN Collection can be passed as Input as Idaithalam.
  • Idaithalam can be integrated along Continuous Integration and Continuous Delivery(CI/CD) with Pipeline.
  • Idaithalam take the POSTMAN Collection as Input and Covert as Cucumber Feature file.
  • Cucumblan-API another product will execute the feature file and Produce the Cucumber Report with BDD style.

Used for Contract testing.

  • Support for Contract testing.

Used for Production Checkout.

  • Utilized to run against selected use case that needs to validated against Production Checkout(Validation during the production release).

Used for Agile sprint-end Regression testing.

  • During the sprint, You can run all the test cases Manually and then save the response via POSTMAN. Using Idaithalam, Export the POSTMAN Collection and Pass Collection to Idaithalam and will execute and produce the Excellent cucumber HTML Report with all the charts.