我想在没有 TestCase、Junit 或 SeleneseTestCase 的情况下使用 selenium RC。
我想编写一个代码来执行我的网站自动化。我不想使用任何来自 ework 链接 testCase 或 SeleneseTestCase 的测试。
我只想编写代码并运行我的代码而无需任何测试用例。
这可能吗?
You can try the Selenium Webdriver API http://seleniumhq.org/docs/03_webdriver.html. It does not force you to use JUnit or the like. It simply starts a browser and executes your commands. You can still access page contents and examine them if you like.
当我无聊时,我通常使用 Selenium 在 Twitter 上发推文或在 Facebook 上发帖。我仍然对 Selenium 的功能感到惊讶。但在某种程度上,我们并没有充分利用 Selenium 的功能。
仅供参考,您可以在 Selenium RC 和 WebDriver 中做到这一点:D