sbtqa / datajack Goto Github PK
View Code? Open in Web Editor NEWJava library to work with your test data
License: Other
Java library to work with your test data
License: Other
We need to release new properties adaptor with custom properties path
We should just return 'this' in case of empty string to make it easier to use.
For example we wont check path for emptiness.
Let assume we have a structure:
So relations will be:
But it isn't logical and should be relative to the current collection:
Now datajack is too big with dependencies. And no one use all of adaptors at one time. So we need move each adaptor to separate project.
проверено на версии 5.0.1 и 5.0.2 в составе page-factory 2 13.0.1 и 14.5.0 соответственно.
При чтении данных из json файла производится излишнее преобразование. Из примера 4 в "4", ["Hi!"] в [ \"Hi!\"], как получить такие же данные, как в json файле (без преобразований)?
JsonDataProvider data = new JsonDataProvider(path, "SendTextBody");
String body = data.get("correctRequest").getValue();
файл SendTextBody.json
{
"correctRequest": {
"conversation_id": 4,
"text": "",
"render_type": "HTML",
"suggestions": ["Hi!"]
}
}
результат в body:
{
"conversation_id" : "4" ,
"text" : "" ,
"render_type" : "HTML" ,
"suggestions" : "[ \"Hi!\"]"
}
testDataProvider.fromCollection(coll).getValue throws NPE.
null or "" expected
@kosteman, @clicman нужна ваша помощь
Обращение к ключу X-User у Json следующего типа:
{ "X-User": { "systemId": "QJ160", "customerIds": [ { "id": "93V", "branch": "Cu19" } ] } }
Приводит к возврату такого value:
{ "systemId" : "QJ160" , "customerIds" : "[ { \"id\" : \"93V\" , \"branch\" : \"Cu19\"}]"}
Вместо ожидаемого:
{ "systemId" : "QJ160" , "customerIds" : [ { "id" : "93V" , "branch" : "Cu19"}]}
We should use generic types on it
Need to add a few methods to access inner Map representation of TestDataObject
Also we need to decide which kind of line endings we are going to use.
see https://help.github.com/articles/dealing-with-line-endings/
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.