问题描述
我们将针对CRM 2015中的功能测试实施Selenium自动化测试(客户建议,因为它是开源工具),我在Google和针对CRM 2015的Selenium的不同搜索引擎中进行了很多探索。 b您能否建议/指导我如何在crm 2015中使用硒
We are going to implementation Selenium automation testing for functional testing in CRM 2015 (Client suggestion , because it is open source tool), I did a lot of exploration in Google and different search engine for Selenium for CRM 2015.Could you advise/guide me how to use selenium in crm 2015
推荐答案
我不知道为什么基本上还没有回答您可以安装,然后选择以用于要自动运行的浏览器。然后使用OpenQA.Selenium编写一个控制台应用程序,例如
I wonder why isn't it answered yet, basically you can install the nuget package and choose a webdriver for the browser you want to automate. Then write a console application like
using OpenQA.Selenium;
using OpenQA.Selenium.IE;
string crmUrl = "http://mycrm.url";
//create a ieAutomation
IWebDriver ieAutomation = new InternetExplorerDriver();//BrowserDriver
// open url
ieAutomation.Navigate().GoToUrl(crmUrl);
// find element by id and set text
ieAutomation.FindElement(By.Id("name")).SendKeys("set the text");
// find element by id and make a click
ieAutomation.FindElement(By.Id("id")).Click();
// close the driver & exit
ieAutomation.Close();
ieAutomation.Quit();
这是一个快速入门教程,您可以在。
虽然是SPA,但设置起来实在太昂贵,不值得付出努力,但是LEAPTEST声称价格很容易。
This is one quick startup tutorial to start with, you can found more in the documentation.Although being a SPA it's too expensive to set it up and not worth the effort but LEAPTEST claims it be easy with a price.
注意:请确保 Bin\Debug 文件夹中找到strong> IEDriverServer.exe
Note: make sure IEDriverServer.exe is available in the Bin\Debug folder
这篇关于CRM 2015中的硒自动化测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!