使用webdriver node.js进行端到端测试/运行Selenium IDE.json文件

使用webdriver node.js进行端到端测试/运行Selenium IDE.json文件,node.js,selenium,selenium-webdriver,end-to-end,selenium-server,Node.js,Selenium,Selenium Webdriver,End To End,Selenium Server,我已经安装了google Chrome的Selenium扩展名,因此我可以记录我的测试并将测试文件保存为。side是一个json文件。它包含 {id,命令,目标,值} { "id": "70a08bcc-b351-4ec6-b64d-f833f09adfa2", "name": "Untitled Project", "url": "http://example.io", "tests": [ { "id": "0b

我已经安装了google Chrome的
Selenium扩展名
,因此我可以记录我的测试并将测试文件保存为
。side
是一个
json
文件。它包含

{id,命令,目标,值}

{     "id": "70a08bcc-b351-4ec6-b64d-f833f09adfa2",
      "name": "Untitled Project",
      "url": "http://example.io",
      "tests": [
        {
          "id": "0b5184ff-4873-459b-b55b-77d56ebf5f6e",
          "name": "Untitled",
          "commands": [
            {
              "id": "35b40ae7-1ada-46d9-8c65-d8faaf1af753",
              "command": "open",
              "target": "/",
              "value": ""
            },
            {
              "id": "0e0bd8b3-4301-4ac6-8cd6-4b01fa94f68d",
              "command": "type",
              "target": "name=login",
              "value": "test@tets.io"
            },
            {
              "id": "078da69d-eec3-44b8-b793-53b401a18ac4",
              "command": "clickAt",
              "target": "//div[@id='cloud-ui']/div/div[3]/div/button/span",
              "value": "24,17"
            }...
我想知道是否有使用
JavaScript
自动运行测试文件的解决方案,例如读取文件并执行命令的插件

如果没有,那么如何创建我自己的JavaScript函数来获取json对象
{id,command,target,value}
,并执行这些命令呢

例如:

   {
      "id": "512a84b8-c3b0-4cb6-88b4-025d28502f1f",
      "command": "clickAt",
      "target": "css=li.active > a",
      "value": "18,62"
    }
我们可以使用selenium webdriver运行它

  driver.findElement(By.css("li > a > span")).click();

侧面流道也可以运行参数化测试吗?(即:我希望测试在几个按钮上循环并执行相同的操作,但我需要在列表中提供按钮的名称)