Contributions
Re: DataGen deprecated - Alternatives to define templates/multiline properties?
Hi Tanya, i don't think there is a "solution" at all. Using a deprecated feature should never be the "right solution". But as long as ReadyAPI doesn't provide a suitable replacement for DataGen templates,there simply is NO alternative (in my point of view). So i am not completly happy, but when DataGen gets never removed from ReadyAPI, i can live with that. Best regards, Joachim6 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.1KViews0likes3CommentsRe: DataGen deprecated - Alternatives to define templates/multiline properties?
HiRadford thanks for your reply, which i agree with completely. The main reason i would like to use DataGen is, that the template itself is maintained by our business engineers (with no programming skills), who also run the ReadyAPI tests. They have to change the template sometimes by copy&pasting it from another tool, so these procedure has to be as simple and foolproof as possible. After the DataGen step, this template is processed by a groovy script step, which is used many times all over the test suite. So theoretically it would be possible to declare the template as multiline String inside the script, but this has some disadvantages: 1.) The business engineers have to carefully copy&past the string into the delimiters to not break the whole groovy script. (if this happens, they usualy won't notice that, so they would wonder why the tests fail.) 2.) This would mix up some data and logic within the groovy script, which is imho the wrong architectural approach. Especially when every other data (properties) is declared in distinct property steps, which will be referenced by the same groovy script. As we are actually starting to embed this template and groovy script in many existing test suites, i don't feel well with introducing a deprecated feature. But if you say this feature is deprecated since 2.0 and is still there, i will think about it.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.1KViews0likes6CommentsRe: DataGen deprecated - Alternatives to define templates/multiline properties?
Ahh.... just read the release notes for version 2.1. the DataGen step will remain in the product, but will not evolve. With this, i think it is safe to use DataGen for templating purpose.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.1KViews0likes5CommentsRe: DataGen deprecated - Alternatives to define templates/multiline properties?
Hi richie, no i am not sure, that's the reason why i was asking the community. :-) With DataGen, there is explicitly the possibility to create Templates: A template property lets you create complex multi-line values. It is useful when you generate a request body. Tip: A template can also containproperty expansions. So you can use other properties of the test step. After beeing deprecated, the docu recommends the following replacement: Template DataGen does not have a direct alternative. If you need to simulate it in your tests, generate the values with the DataSource test step and add them to the request by usingproperty expansions. Within the DataSource, i can use Generators to generate different type of pre defined values (Address, Phone Number, GUID, ...) and "Custom Strings". But these are only single line strings, as DataSource generally isintended to act like a database which generates rows of data. The "Properties" test step could be a suitable replacement, as it defines static key/value pairs. But unfortunately, the values are also only single line and there is no property expansion within the values. So with DataGen beeing deprecated, i can't find any posibility to define a single multiline (template like) property to be passed to my test step. Regards, Joachim6 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.1KViews0likes8CommentsRe: DataGen deprecated - Alternatives to define templates/multiline properties?
Radford https://support.smartbear.com/readyapi/docs/soapui/steps/data-gen.html "The DataGen test step is deprecated and will be removed in one of the upcoming releases." It isn't clear at all in which release DataGen actually will be removed. So in worst case it could be the right next release.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.1KViews0likes0CommentsDataGen deprecated - Alternatives to define templates/multiline properties?
Hi all, in our project (using ReadyAPI 2.6.0) we do need the possibility to define one multiline template per step with property expansion enabled. DataGen templates do have exactly the expected behaviour, but unfortunately the docu states that DataGen is deprecated and will be removed in the next releases. The docu also states, that DataSource should be the proper replacement, but it isn't by far. There is no way to define some multiline text and i don't need the feature of multiple rows. "DataSource" is surely the proper way to define database like sets of entries with rows/columns to iterate over, but not to define a single static template. So what are my options? Why is DataGen deprecated? When will it be removed? Why isn't it possible to define simple multiline properties? What else could i do to achive this goal? Best regards, JoachimSolved4.5KViews0likes12Comments