如何直接调用descripe()函数-jasmine/量角器测试

如何直接调用descripe()函数-jasmine/量角器测试,jasmine,protractor,Jasmine,Protractor,查看文件example.js中的这个简单量角器测试: describe('this is my first test',function(){ var ptor; it('step 1 ',function(){ ptor = protractor.getInstance(); ptor.get('#/'); },30000); }); 为了使用量角器运行此测试,我必须创建一个配置文件(my_conf.js),并将example.js添加

查看文件
example.js
中的这个简单量角器测试:

describe('this is my first test',function(){
    var ptor;
    it('step 1 ',function(){
        ptor = protractor.getInstance();
        ptor.get('#/');
    },30000);
});
为了使用量角器运行此测试,我必须创建一个配置文件(
my_conf.js
),并将
example.js
添加到
spec
。然后从命令行调用:
量角器my_conf.js

相反,我希望像这样运行测试:
节点示例.js

所以我的问题是,在我的
example.js
测试中需要哪些模块,以及如何调用
description
it
函数?(您可以忽略未定义的
量角器
实例)


谢谢,这可能不太可能,我想grandor.js是必须的,但除此之外,Grandor必须只在selenium服务器上运行,我认为Grandor js可以模拟和单击页面,并作为虚拟qa运行。

为什么要这样运行?您可以自己做,但这需要大量复制存在于gragrator/lib/runner.js中的代码,您需要知道如何连接到selenium服务器。