Sahi :Sahi 中的 File:// 协议支持

发布于 2024-12-20 07:38:19 字数 340 浏览 4 评论 0原文

我正在评估 Sahi 的自动化程度。我的要求是自动化一个基于 Html 和 JavaScript 的静态 Web 应用程序。 我试图记录测试,但没有发生。

file:///C:/Automation/welcome.html

但 Sahi 没有记录它。我在 [url]http://sahi.sourceforge.net/using.html[/url] 网站上看到,只有 ##Keep“对所有协议使用相同的代理”未选中,因为 Sahi 不理解 HTTP 以外的协议##

是否还没有提供File://或其他协议支持? 请告诉我 Sahi 是否有任何替代方案可以满足此类要求? 我在任何论坛都找不到它,请帮忙。 谢谢

I am evaluating Sahi for automation. My requirement is to automate a web application that is static and based on Html and JavaScript.
I tried to record the test but it did not happen.

file:///C:/Automation/welcome.html

But Sahi doesn't record it. I saw on [url]http://sahi.sourceforge.net/using.html[/url] site that only ##Keep "Use the same proxy for all protocol" unchecked as Sahi does not understand protocols other than HTTP##

Does File:// or other protocols support is not been provided yet?
Please let me know is there any alternative Sahi provides for such requirement?
I could not find it on any forum, please help.
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

夏の忆 2024-12-27 07:38:19

请使用网络服务器打开您的页面,然后通过 Sahi 访问它。
Sahi 将无法使用文件协议自动执行页面。

Please use a webserver to open your pages and then access it through Sahi.
Sahi will not able to automate pages with the file protocol.

北城孤痞 2024-12-27 07:38:19

您可以在系统中使用WAMPXAMPP服务器,然后将html文件放在本地服务器目录中,然后您可以通过http://localhost:port/welcome.html 然后就可以使用Sahi Pro进行录制和播放。

除了 WAMPXAMPP,您也可以使用 EasyPhp

You can use WAMP or XAMPP server in your system, and then put the html file in the local server directory and after that you can access your html page by http://localhost:port/welcome.html and then you can use Sahi Pro for recording and playback.

Instead of WAMP or XAMPP, you can use EasyPhp too.

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