简体   繁体   English

Oracle apex 应用程序显示 utplsql 测试结果

[英]Oracle apex application to show utplsql test results

How can we create a report for showing the test result output of utplsql testing.我们如何创建一个报告来显示 utplsql 测试的测试结果 output。 The output of utplsql appears on screen when we run ut.run('package_name').当我们运行 ut.run('package_name') 时,utplsql 的 output 出现在屏幕上。 How can we store it somewhere and display it in report format in apex application.我们如何将它存储在某个地方并在 apex 应用程序中以报告格式显示它。

You can run it as a query as well:您也可以将其作为查询运行:

select * from table(ut.run('package_name'))

This gives the output as a query result, which you can use in your reports as you like.这会将 output 作为查询结果,您可以根据需要在报告中使用它。 I'm often using nothing else, just have a query like this running on repeat in PL/SQL developer.我经常不使用其他任何东西,只是在 PL/SQL 开发人员中重复运行这样的查询。

Note that there are other ways to run the tests as well.请注意,还有其他方法可以运行测试。 First of all, you can use different reporters that output the tests in different formats, from human-readable to formatted for specific automated testing tools, as well as integrations with the most popular database management tools, like TOAD, DataGrip and of course SQL Developer.首先,您可以使用不同的报告器 output 以不同的格式进行测试,从人类可读到针对特定自动化测试工具的格式化,以及与最流行的数据库管理工具的集成,如 TOAD、DataGrip,当然还有 SQL 开发人员.

Also, there is a command line interface from which you probably could dump the output to files.此外,还有一个命令行界面,您可能可以从中将 output 转储到文件中。

The documentation provides the chapter Running unit tests , ( 3.1.10 ) that demonstrates various ways.该文档提供了运行单元测试( 3.1.10 ) 一章,演示了各种方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM