Oracle APEX Web 应用程序的自动化测试

发布于 2024-08-12 07:53:59 字数 277 浏览 1 评论 0原文

我目前正在开发一个新的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

相思故 2024-08-19 07:53:59

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

野味少女 2024-08-19 07:53:59

如果您想要简单的东西,请使用 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

需要“rubygems”需要“selenium-webdriver”需要“rspec”

描述“Admin ABC”的作用

在(:each)之前执行@vcntPg = 20结束

在(:all)之前做@driver = Selenium::WebDriver.for :firefox @wait
= Selenium::WebDriver::Wait.new(:timeout => 15) @driver.navigate.to "whateverurl" end

after(:all) 执行 @driver.quit 结束
描述“管理项目/用户/事件”
它“应该编辑 CDE”执行

<预><代码> @wait.until {
@driver.find_element(:css ,"a[href*='Home.asp?GroupId=2']")
}

结束

结束

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

require 'rubygems' require "selenium-webdriver" require "rspec"

describe "Admin ABC" do

before(:each) do @vcntPg = 20 end

before(:all) do @driver = Selenium::WebDriver.for :firefox @wait
= Selenium::WebDriver::Wait.new(:timeout => 15) @driver.navigate.to "whateverurl" end

after(:all) do @driver.quit end
describe "Admin Project/User/Events" do
it "Should Edit CDE" do

              @wait.until {
                  @driver.find_element(:css ,"a[href*='Home.asp?GroupId=2']")
              }

end

end

累赘 2024-08-19 07:53:59

也可以使用 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

梨涡少年 2024-08-19 07:53:59

您可以使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文