authorjapps / zerocode

A community-developed, free, opensource, automated testing framework for microservices APIs, Kafka(Data Streams) and Load testing. Zerocode Open Source enables you to create, change and maintain your automated test scenarios via simple JSON or YAML files. Visit documentation below:
https://zerocode-tdd.tddfy.com
Apache License 2.0
901 stars 400 forks source link

Wrapper class needed to access zerocode methods #449

Open mailtoach79 opened 4 years ago

mailtoach79 commented 4 years ago

Hi,

I'm using ZEROCODE for API Testing(REST, SOAP, DB, end to end etc), and I would like to integrate API testing with UI testing(Browser Testing), so to integrate its needs external library, which makes the automation slightly complex , longer journey. Can you provide some wrapper classes which should process the requests and returns the response object in a map /json string.

This should be very useful when API test is integrated with UI test.

Thanks.

authorjapps commented 4 years ago

@mailtoach79 , it's possible to expose these as apis or DSLs. We will fit this into our upcoming roadmap and implement this !

kt09 commented 4 years ago

@mailtoach79 - You can however write your own custom wrapper and return response as a map. There are examples on how to do that.

mailtoach79 commented 4 years ago

Thanks for your response.. can you share few details on example links.. which can be helpful. thanks.

sparrowV commented 3 years ago

@mailtoach79 What you can do is the following:

1) Define a method, and do UI stuff in that method. Get all the information you need and return that info to zerocode scenario
2) Call that method from zerocode scenario
3)assert the results

you can take a look here, where method execution is done