Oracle APEX Web 应用程序的自动化测试
我目前正在开发一个新的 Web 应用程序,它是使用 Oracle APEX 开发的。它基本上是一个十页的向导式网络表单,需要填写并提交。几乎在所有情况下,只会使用其中的三个或四个页面,而其他页面则用于向用户呈现特殊情况信息。
无论如何......我目前正在编写一个测试计划,以确保所有验证和流程都按预期工作,并且如果可能的话,我想尝试自动化此测试。
有谁知道我可以为此目的使用任何好的自动化测试工具(最好是开源的)?另外,由于可能相关,我仅限于 Java 和/或 APEX 来定制这些工具以满足我的测试需求。
I'm currently working on a new web application and it's being developed using Oracle APEX. It's basically a ten page wizard-style web form that gets filled out and submitted. In nearly all cases, only three or four of these pages will be used and the other exist to present special-case information to the user.
Anyway... I'm currently writing a test plan to ensure all the validation and processes are working as expected and I would like to try automating this testing if at all possible.
Does anyone know any good automated testing tools (preferable open source) that I can put to use for this purpose? Also, as it might be relevant, I'm limited to Java and/or APEX for tailoring these tools to meet my testing needs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
硒 - http://seleniumhq.org/
Selenium - http://seleniumhq.org/
Cucumber 带有无头驱动程序,例如 水豚-webkit。
在这里,您可以找到如何为 APEX 等非 Rails 应用程序执行此操作 http://github.com/pshapoval/cucumber -norails
Cucumber with headless driver such as capybara-webkit.
Here you can find how to do it for non rails apps like APEX http://github.com/pshapoval/cucumber-norails
如果您想要简单的东西,请使用 Selenium Web 驱动程序和 RSPEC。我在传统的经典 ASP 应用程序中使用它,并将其与 Oracle Apex 一起使用。最好使用 ruby 而不是 Firefox Selenium IDR。
请按照以下步骤操作
使用 ruby 2.0.0p481 进行测试
安装了以下 gems
childprocess-0.5.3.gem
diff-lcs-1.2.5.gem
ffi-1.0.11.gem
ffi-1.0.11-java.gem
multi_json-1.10.1.gem
rspec-3.0.0.gem
rspec-core-3.0.4.gem
rspec-期望-3.0.4.gem
rspec-mocks-3.0.4.gem
rspec-support-3.0.4.gem
rubyzip-1.1.6.gem
selenium-webdriver-2.42.0.gem
要安装,请运行
gem install selenium-webdriver --local
您将被要求安装依赖项..按照说明进行操作。
运行测试
rspec RecordAdminTests.rb
您将需要运行 selenium 服务器
java -jar selenium-server-standalone-2.42.2.jar
Selenium web driver and RSPEC if you want something straightward. I use it in a legacy classic ASP application and used it with Oracle Apex as well. Best to use ruby rather than the Firefox Selenium IDR.
Follow the below steps
Tested with ruby 2.0.0p481
Installed the following gems
childprocess-0.5.3.gem
diff-lcs-1.2.5.gem
ffi-1.0.11.gem
ffi-1.0.11-java.gem
multi_json-1.10.1.gem
rspec-3.0.0.gem
rspec-core-3.0.4.gem
rspec-expectations-3.0.4.gem
rspec-mocks-3.0.4.gem
rspec-support-3.0.4.gem
rubyzip-1.1.6.gem
selenium-webdriver-2.42.0.gem
To install run
gem install selenium-webdriver --local
You will be asked to install dependencies..follow instructions.
To run tests
rspec RecordAdminTests.rb
You will need selenium server running
java -jar selenium-server-standalone-2.42.2.jar
也可以使用 JMeter,特别是用于负载测试。克里斯·缪尔(Chris Muir)在这里有一个很好的分解
http:// /one-size-doesnt-fit-all.blogspot.com.au/2010/05/configuring-apache-jmeter-for-apex.html
JMeter can also be used, particularly for load testing. Chris Muir has a good breakdown here
http://one-size-doesnt-fit-all.blogspot.com.au/2010/05/configuring-apache-jmeter-for-apex.html
您可以使用 Cypress,它具有简单的学习曲线和开箱即用的交互式测试运行程序。这是我现在用于自动化浏览器测试的首选工具。
https://www.cypress.io
You could use Cypress, which has an easy learning curve and interactive test runner right out of the box. This is my goto tool for automated browser testing now.
https://www.cypress.io