angularjs – 如何运行量角器以在AWS上验证CHROME
发布时间:2020-12-17 08:47:18 所属栏目:安全 来源:网络整理
导读:我正在使用AngularJS / JBOSS构建SaaS解决方案,该解决方案托管在AWS EC2实例上;我们所有的功能都包含在单元和e2e测试中.所有测试都在本地运行良好.我们无法弄清楚如何在AWS上运行它们.我们的AWS安装包括根据 these instructions安装的无头CHROME: 重现步骤
我正在使用AngularJS / JBOSS构建SaaS解决方案,该解决方案托管在AWS EC2实例上;我们所有的功能都包含在单元和e2e测试中.所有测试都在本地运行良好.我们无法弄清楚如何在AWS上运行它们.我们的AWS安装包括根据
these instructions安装的无头CHROME:
重现步骤 >在基于linux的x86_64 EC2实例中设置chrome / firefox 观察到的行为 /usr/local/lib/node_modules/protractor/selenium/chromedriver: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory 06:41:15.140 WARN - Exception thrown 预期的行为 其他资源: exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub',specs: ['../test/e2e/**/*.js'],// A base URL for your application under test. Calls to browser.get() // with relative paths will be prepended with this. baseUrl: 'http://localhost:8080/markodojo_solution/#/a3bc8692-5af4-4a4d-b21b-4e6f87dc2a32',// Options to be passed to Jasmine-node. jasmineNodeOpts: { showColors: true,isVerbose: true,defaultTimeoutInterval: 30000 },//Options to output testreuslts in xml format onPrepare: function() { // The require statement must be down here,since jasmine-reporters // needs jasmine to be in the global and protractor does not guarantee // this until inside the onPrepare function. require('jasmine-reporters'); jasmine.getEnv().addReporter( new jasmine.JUnitXmlReporter('xmloutput',true,true)); } }; 在此先感谢您的帮助!
使用Headless Chrome选项
这极大地简化了工作流程并且不得不使用更多系统资源. 请按照以下广泛步骤操作: > Chrome安装.假设您已经安装了Chrome.但是如果没有遵循steps to install Chrome on linux EC2 chromeOptions: { args: [ "--headless","--disable-gpu","--window-size=800,600" ] } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读