Selenium、Siebel 和 QTP
我即将开始为使用 Siebel 7.5 的客户开发 UI 自动化项目。我一直在环顾四周,似乎没有太多关于是否可以使用 Selenium 在 siebel 中自动化 GUI 测试的信息。问题是,是否可以使用 selenium 实现 Siebel 自动化。我听说 Siebel 有两种模式,SI 和 HI,有什么区别?
另一方面,我听说使用 HP QTP 自动化早期版本的 Siebel 存在问题。 这些问题是什么以及最佳解决方法是什么。
我意识到这不仅仅是一个问题,我将投票给回答一个组件的人,答案将交给回答最多组件的人
提前致谢
I am about to start work on a UI automation project for a client who is using Siebel 7.5. I have been looking around and it seems that there is not a lot of info out there on if it is possible to automate GUI tests in siebel using Selenium. The question is, Is it possible to automate Siebel using selenium. I hear there are two modes for Siebel, SI and HI, what is the difference?
On another note, i have heard that there are issues automating early versions of Siebel using HP QTP. What are these issues and what is the best workaround.
I realise this is more than one question, i will vote up whoever answers a component and the answer will go to the person who answers the most components
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
HI 代表“Hi Interactivity”,用于通过 LAN 访问的站点 HI Siebel 应用程序中的大多数对象都是 ActiveX 控件。
SI 代表“标准交互性”,用于外部访问的网站,通常是纯 HTML。
从版本 7.7 开始,Siebel 启动器提供 Siebel Test Automation (STA),它为测试工具提供 API,QTP 使用此 API 来测试 Siebel 7.7 及更高版本。 STA 仅与 HI 应用程序相关,对于 SI 应用程序,Siebel 在 HTML 中添加了一些提示以帮助测试工具。
我不知道 QTP 测试经典(7.7 之前)Siebel 应用程序的具体问题,而且我根本不了解 Selenium,所以我希望我提供的一般信息是有用的。
HI stands for "Hi Interactivity" it is used for sites that are accessed over the LAN most objects in an HI Siebel application are ActiveX controls.
SI stands for "Standard Interactivity" it is used for sites that are accessed externally and is usually pure HTML.
Starting in version 7.7 Siebel starter supplying Siebel Test Automation (STA) which provides an API for testing tools, this API is used by QTP for testing Siebel 7.7 and later. STA is relevant only for HI applications, for SI applications Siebel adds some hints to the HTML in order to help testing tools.
I don't know of specific problems with QTP testing classic (pre 7.7) Siebel applications and I don't know about Selenium at all so I hope the general information I provided is useful.
如上所述,HI 模式可以启用测试挂钩,但这些都是非常基本的,需要一些额外的软件才能轻松使用。另外,HI 只能在 IE 中运行,而 IE 没有强大的 Selenium 记录工具。
另一方面,SI 模式只是 HTML 并且可以在 Firefox 中运行,因此应该可以使用 Selenium 进行测试。确实需要一点设置,请记住,SI 的测试结果与用户在更有用的 HI 模式中看到的结果之间会有差异 - 但如果您可以忽略特殊小程序的使用,并避免客户端编码,它应该可以工作。
As said above, HI mode can have test hooks enabled but these are pretty basic and need some additional software to work with easily. Also, HI only works in IE which does not have the great Selenium recording tool.
On the other hand, SI mode is just HTML and works in Firefox, therefore should be testable with Selenium. Does require a little set-up and please bear in mind that there will be differences between the test results for SI and what the users will see in the much-more-usable HI mode - but if you can ignore the use of special applets, and avoid client-side coding, it should work.
您可以结合使用 Ruby watir-classic 和 rautomation 以及一些 JavaScript 来与几乎所有 Siebel HI 组件进行交互。这两个 Ruby gem 使用 WIN32OLE API 和 COM,因此本质上您可以使用任何支持 Windows API 的语言。这是一项巨大的努力,但最终得到了回报,因为它都是开源的,而像 QTP 和 TestComplete 这样的工具要花费一大笔钱。
You could use a combination of Ruby watir-classic and rautomation plus a bit of javascript to interact with almost all of the Siebel HI Components. The two Ruby gems use WIN32OLE API and COM, so in essence you could use any language that supports the Windows API. It's a huge effort, but pays off in the end, cause it's all open source, whereas tools like QTP and TestComplete cost a fortune.