jakimli / pandaria Goto Github PK
View Code? Open in Web Editor NEWLightweight API testing tool based on cucumber JVM
License: MIT License
Lightweight API testing tool based on cucumber JVM
License: MIT License
Hello!
I'm trying to compare if the value of a property from the response body is equals to a value obtained from the database.
My scenario is very similar to this one below I tried in very different ways to use the verify but it
either it can't be evaluated or is evaluate to null.
Scenario: Compares database and response body
* uri: http://www.myservice.com/get_something
* dir: features/queries
* query: find_something.sql
# It's finding a single line like [ { id=123, name="SomeName"} ]
* var: query_result<-'$[0]'
* send: GET
# response body {"id": 123, "name": "SomeName"}
* status: 200
# some verify usages that I tried
* verify: '$.id'=code: ${query_result.id}
* verify: '$.id'=code: ${query_result.get('id')}
* verify: '$.id'=${query_result.id}
Did pandaria implemented this kind of step already?
https://app.leanboard.io/board/2888ba13-a6b1-43bd-999f-195766a0cef5
JSON verification support length/size
verify: '$' has size: 5
Is Multi-part requests currently supported?
如题,我只有一个 .feature 文件,我该怎么使用代理,我想使用fiddle捕获请求
After I reviewed the introduction and code I found the stationary token is saved in application.properties file:
http.headers.Authorization=Bear Token
http.headers.global=globalHeader
http.headers.will_be_overrided=not_overrided
But if the Bear token will be expired after a period, and need to call a custom method to generate a new token, such as call "/tokens/generate?entity-id=" API to generate before test, how can I use the project for cucumber-api testing?
Currently, variable definition looks like this:
var: 'name'='value'
The single quote around name
is quite confusing.
Suggest:
var: name='value'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.