我正在尝试使用量角器运行一个简单的测试脚本。
环境:
Node Version: v9.8.0
Protractor Version: 5.4.1
Angular Version: 1.x
Browser(s): Mozilla Firefox 60.1.0
Operating System and Version: HELiOS release 6.10
Run Code Online (Sandbox Code Playgroud)
这是我的量角器配置文件。
exports.config = {
specs: ['todo-spec.js'],
capabilities: {
browserName: 'firefox',
marionette : true
}
};
Run Code Online (Sandbox Code Playgroud)
这是我的测试脚本(todo-spec.js)
describe('application homepage', function() {
it('should open homepage', function() {
console.log("Opening localhost app");
browser.get('http://localhost:8080/app/');
browser.sleep(20000); // just to check if application loaded or not
});
});
Run Code Online (Sandbox Code Playgroud)
这是我的node_modules/protractor/node_modules/webdriver-manager/selenium/目录,如下所示:
当我使用 运行测试时/path/to/protractor conf.js,我收到下面提到的错误。
[16:51:03] I/launcher - Running 1 instances of WebDriver
[16:51:03] …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用RPM托管django Web应用程序.
当安装在裸机centos机器上时,此RPM软件包应安装所需的所有依赖项,并配置httpd服务器以为应用程序提供服务.
这是我的RPM规范文件的要点.
Requires: epel-release, python2, python-setuptools, python-pip, python-virtualenv, python-devel, httpd, mod_wsgi, git, sqlite
Run Code Online (Sandbox Code Playgroud)
据我所知,安装epel-release软件包后可以在centos 7上安装python-pip.
https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F
基本上,
我的RPM包 - >取决于 - > python-pi - >取决于 - > epel-release
这就是为什么我在Requires标签的spec文件中添加了epel-release作为第一个依赖项.
但是,当我安装我的RPM包时,我收到错误并且安装失败.
这是我安装我的包的方式.
yum localinstallinstall packagename-1-1.0.x86_64.rpm -v
Run Code Online (Sandbox Code Playgroud)
我收到的错误是"找不到包python-pip"
epel-release标记为安装.但是还没有安装,因为找不到python-pip,它也失败了.
我想要实现的是它应该安装epel-release然后再安装python-pip.