selenium IDE - 更改所有测试的基本 URL? [英] selenium IDE - change Base URL for all tests?

查看:36
本文介绍了selenium IDE - 更改所有测试的基本 URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一套 15 个测试用例.

I have a suite of 15 test cases.

我现在想针对不同的基本 URL 运行它们.

I now want to run them against a different Base URL.

有什么办法可以一次性更改所有 15 个?

Is there any way to change all 15 in one go?

到目前为止,我必须做的是逐个更改它们,这既缓慢又乏味.

So far what I have had to do is change each of them one-by-one which is slow and tedious.

推荐答案

您可以在文本编辑器中打开所有测试用例 xml.您甚至可以在 selenium IDE 中编辑源"(请参见下面的屏幕截图).只需删除每个测试用例中的 <link rel="selenium.base" href="http://dmstaff2.herokuapp.com/"/> ,然后他们将使用任何内容的 url您的 Firefox 网络浏览器此时已具备.

You can open all the test case xmls in a text editor. You can even just edit the 'source' in the selenium IDE (see screenshot below). Just remove the <link rel="selenium.base" href="http://dmstaff2.herokuapp.com/" /> in each test case and then they will use the url of whatever your firefox web browser has at that point.

这篇关于selenium IDE - 更改所有测试的基本 URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆