Skip to content

Instantly share code, notes, and snippets.

View Avinash9969's full-sized avatar

QAAutomationNube Avinash9969

View GitHub Profile
@Avinash9969
Avinash9969 / EmbeddedExpAndCsv.feature
Last active July 17, 2020 11:17
Embeddd expresion and CSV clarification
Feature: Embeddd expresion and CSV clarification
Background:
* def sorts = {ascOrDesc : '##(ascOrDesc)'}
* def getFields = {pageSize : '##(pageSize_Fields)',page :'##(page_Fields)',fields : '##(fields_Fields)'}
* def justType = []
* def justStatus = []
* def parameters = { name :'##(name)',maritalStatus :'##(maritalStatus)',justType: '#(justType)',justStatus:'#(justStatus)'}
* def requestJson = {getFields :'#(getFields)',parameters :'#(parameters)',sorts:'#(sorts)'}
Feature: # https://stackoverflow.com/questions/60434512/how-to-construct-pojo-like-for-complex-request-structure-using-karate
Background:
* def sorts = {ascOrDesc : '##(ascOrDesc)'}
* def getFields = {pageSize : '##(pageSize_Fields)',page :'##(page_Fields)',fields : '##(fields_Fields)'}
* def justType = []
* def justStatus = []
* def parameters = { name :'##(name)',maritalStatus :'##(maritalStatus)',justType: '#(justType)',justStatus:'#(justStatus)'}
* def requestJson = {getFields :'#(getFields)',parameters :'#(parameters)',sorts:'#(sorts)'}