Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web interface calls to generate data in other formats #18

Closed
maojunxyz opened this issue Oct 18, 2021 · 9 comments
Closed

web interface calls to generate data in other formats #18

maojunxyz opened this issue Oct 18, 2021 · 9 comments

Comments

@maojunxyz
Copy link

web接口调用

Is it possible to support data generation by configuring the format in yaml and then generate it directly through web interface calls?

It is possible to output data in other formats at the command line, but I have to maintain my command line scripts. Why not integrate it into a web page to manage it?

@maojunxyz
Copy link
Author

By generating data in other formats through web calls, I can then integrate it into other web services or tools.

@aaronchen2k
Copy link
Collaborator

aaronchen2k commented Oct 18, 2021

yes, you can call zendata web api to generate test data in json format, and it has a webui for yaml design.

@maojunxyz
Copy link
Author

yes, you can call zendata web api to generate test data in json format.

The command line supports a total of 7 data types, but the web has only json type.

Please support returning other types of data.

@aaronchen2k
Copy link
Collaborator

yes, you can call zendata web api to generate test data in json format.

The command line supports a total of 7 data types, but the web has only json type.

Please support returning other types of data.

Which type of format do you like to use via interface?

@maojunxyz
Copy link
Author

yes, you can call zendata web api to generate test data in json format.

The command line supports a total of 7 data types, but the web has only json type.
Please support returning other types of data.

Which type of format do you like to use via interface?

I see that the browser response format is text/html, the content is json, so theoretically you can return 7 data types format, so I can directly through the web configuration and request the interface response data. No need to configure a tedious configuration file in the terminal and modify different command line parameters to respond to different results. What I mean is that it is easier to operate in the browser compared to the command line.

It's better for collaborative sharing in the browser, where I can share the data types I create with others.

Could specify the output corresponding data type by configuring data type parameters in yaml instead of the default json format?

@aaronchen2k
Copy link
Collaborator

使用JSON格式输出,是因为它很容易被转换成各种语言的对象,作为测试数据用于脚本中。不是很明白为什么需要其他格式的接口输出。

@maojunxyz
Copy link
Author

使用JSON格式输出,是因为它很容易被转换成各种语言的对象,作为测试数据用于脚本中。不是很明白为什么需要其他格式的接口输出。

我更希望它提供向类似终端那样的返回我所期望的格式。通过页面管理可以简化命令行操作的相关命令的修改,我通过配置多个返回期望的数据格式,通过调用接口页面响应返回就可以拿到数据。

除了JSON格式数据外,为了方便不会使用编程语言的功能测试人员使用。返回通过配置化的返回不同数据类型,也方便其他场景扩展使用。当然,通过命令行脚本执行并提取数据也是一同途径。只是WEB化会来的更加的方便和直观些。

@aaronchen2k
Copy link
Collaborator

大致了解了,目前页面上仅显示少数几条用于预览,和API接口的数据生成命令调用,还不是一回事。
你是想从页面上管理和执行一些常用的命令,便于批量生成不同格式的测试数据吧。

@maojunxyz
Copy link
Author

大致了解了,目前页面上仅显示少数几条用于预览,和API接口的数据生成命令调用,还不是一回事。 你是想从页面上管理和执行一些常用的命令,便于批量生成不同格式的测试数据吧。

Yes, that's my current thinking. I would like to be able to do it as a data management platform to access to the CI pipeline.

Thank U for your answer, UR very enthusiastic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants