PerfJankie:错误:您请求的环境不可用 [英] PerfJankie:Error: The environment you requested is not available

查看:277
本文介绍了PerfJankie:错误:您请求的环境不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  perfjankie({p>}) 
suite:'X',
url:'http:// localhost:8081',
名称:job.component,
run:job.version,
();

time:new Date()。getTime(),
callback:function(err,res){
if(err){
//console.error(err);
throw err;
}
runQueue (i + 1);
},
重复:1,
selenium:'http:// localhost:4444 / wd / hub',
couch:COUCH,
浏览器:[{//这也可以是[chrome,firefox]或chrome,firefox
browserName:'chrome',
chromeOptions:{
}
$ b动作:函数(浏览器){
//某些动作
}
});

它给出以下错误签名:

  C:\ Users \ ... \\\
ode_modules\perfjankie\\\
ode_modules\q\q.js:155
throw e;

错误:[init({browserName:chrome,chromeOptions:{perfLoggingPrefs:{traceCategorie
s:,blink.console,disabled-by -default-devtools.timeline,benchmark}},loggingPr
efs:{performance:ALL}})]您请求的环境不可用。

我尝试隔离:
预期结果:这应该会启动Chrome并验证我的应用
观察:不会启动chrome
隔离:


  1. 这会启动firefox(如果我指定browser:firefox) chrome
    或PhatomJS(chrome是我的默认浏览器)。

  2. 尝试指定Chrome的二进制路径(如我在goggled的某个链接中建议的那样)


    1. Selenuim版本:2.20.0(下图:2.34.0-我读了一些链接,显示问题在这些版本下解决)


    不知道我错过了什么。



    PS我不确定要添加什么标签。如果有人可以帮助更新正确的标签,那就太好了。

    我有类似的问题,请尝试将其添加到功能 enablePerformanceLogging:true


    I am trying to run PerfJankie(wrapper over Browser-Perf) to measure performance of my app.

     perfjankie({
                        suite: 'X',
                        url: 'http://localhost:8081',
                        name: job.component,
                        run: job.version,
                        prescript: function (browser) {
                            browser.driver.manage().window().maximize();
                        },
                        time: new Date().getTime(),
                        callback: function (err, res) {
                            if (err) {
                                //console.error(err);
                                throw err;
                            }
                            runQueue(i + 1);
                        },
                        repeat: 1,
                        selenium: 'http://localhost:4444/wd/hub',
                        couch: COUCH,
                        browsers: [{ // This can also be a ["chrome", "firefox"] or "chrome,firefox"
                            browserName: 'chrome',
                            chromeOptions: {                            
                            }
                        }],
                        actions: function (browser) {
                            //some actions    
                        }
                    });
    

    It gives the following error signature:

    C:\Users\...\node_modules\perfjankie\node_modules\q\q.js:155
                    throw e;
                          ^
    Error: [init({"browserName":"chrome","chromeOptions":{"perfLoggingPrefs":{"traceCategorie
    s":",blink.console,disabled-by-default-devtools.timeline,benchmark"}},"loggingPr
    efs":{"performance":"ALL"}})] The environment you requested was unavailable.
    

    My attempts of isolation: Expected result: this should launch Chrome and validate my app Observation: Does not launch chrome Isolation:

    1. This launches firefox(if I specify browser:firefox) but not chrome or PhatomJS(chrome is my default browser).
    2. Tried specifying binary path for Chrome(as it was suggested in some link i goggled)

      1. Selenuim version: 2.20.0(Below: 2.34.0- i read some link that showed the issue gets resolved below these versions)

    Not sure what am I missing.

    P.S. I am not sure what tags to add. If someone could help update right tags, that would be great.

    解决方案

    I was having a similar issue, try adding this to the capabilities enablePerformanceLogging: true.

    这篇关于PerfJankie:错误:您请求的环境不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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