protractor

Protractor - self-signed ssl headless test e2e don't pass

邮差的信 提交于 2020-03-05 03:05:50
问题 We have e2e test with Protractor. When I execute the script in my local machine it will pass. Now I have to integrate it with Jenkins system and docker. My webpage re-directs to another login page due to SSO. So I started with an url like this: https://demop-staging-ppd.com and this demop will me send to sso page with another url. When I write script to test if am I on the exact page, it will not pass because this page: I think the problem is we used self ssl certification. this is my conf.js

Getting 'E/launcher - Error: spawn EACCES' error while trying to run protractor tests in Unix machine

北城以北 提交于 2020-03-03 08:48:28
问题 I am getting below mentioned error while running the protractor tests in headless mode in Unix machine. Thinking it might be due to some permission issue, I gave execute permission to 'protractor' file in protractor/bin folder and to the protractor conf file, but no help. [12:27:50] I/launcher - Running 1 instances of WebDriver [12:27:50] I/direct - Using ChromeDriver directly... [12:27:50] E/launcher - spawn EACCES [12:27:50] E/launcher - Error: spawn EACCES at exports._errnpException (util

Chrome failed to start in docker container using Selenium after upgrading to ChromeDriver v80 and Chrome v80

走远了吗. 提交于 2020-03-02 08:02:27
问题 I have E2E tests running in a docker container. After Friday's update of selenium/node-chrome it would not work anymore. I have tried to use older versions of selenium/node-chrome but it won't work. I have very little experience with docker containers etc. Google Chrome 80.0.3987.106 <- Info gotten running command google-chrome --version chromedriver-80.0.3987.106 <- Info gotten from /opt/selenium/ folder. Here`s how my Dockerfile looks like: FROM selenium/node-chrome:3.141.59 ENV NODE

使用 Jenkins X、Kubernetes 和 Spring Boot 实现 CI/CD

為{幸葍}努か 提交于 2020-03-02 03:21:06
本文首发于: Jenkins 中文社区 过去五年中的变化,如迁移到公有云以及从虚拟机向容器的转变,已经彻底改变了构建和部署软件的意义。 以 Kubernetes 为例。Google 于2014年开源,现在所有主流的公有云供应商都支持它---它为开发人员提供了一种很好的方式,可以将应用程序打包到 Docker 容器中,并部署到任意 Kubernetes 集群中。 使用 CI/CD、Kubernetes 和 Jenkins X 进行高性能开发 在技术上,高性能团队几乎总是成功的必要条件,而持续集成、持续部署(CI/CD)、小迭代以及快速反馈是构建模块。为你的云原生应用程序设置 CI/CD 可能比较困难。通过自动化所有内容,开发人员可以花费宝贵的时间来交付实际的业务。 如何使用容器、持续交付和 Kubernetes 成为高效团队?这就是 Jenkins X 的切入点。 “Jenkins X 的理念是为所有开发人员提供他们自己的海军航海管家,可以帮助你航行持续交付的海洋。” - James Strachan Jenkins X 帮助你自动化你在 Kubernetes 中的 CI/CD - 你甚至不需要学习 Docker 或 Kubernetes! Jenkins X 能做什么? Jenkins X 在 Kubernetes 上自动安装,配置和升级 Jenkins 和其他应用程序(Helm

Angular Protractor - Leave browser open after E2E tests

两盒软妹~` 提交于 2020-02-26 11:29:31
问题 Is it possible to leave the test browser windows open after Angular Protractor tests run? I have a tough test failing in FireFox and it'd be useful to access the state of the web page to see what's going on. 回答1: You can use Protractor debug/pause feature to pause the e2e run which will ultimately leave the browser open: more info here To do so, add this line on your protractor test before the failing one browser.pause(); There is also a very useful tool called elementor that you may want to

Protractors, promises, parameters, and closures

牧云@^-^@ 提交于 2020-02-25 05:58:46
问题 I'm now tearing out what little remains of my hair. And I think I've lost vision in my left knee. I have two functions that work. Each one takes a parameter correctly. I would dearly, so very dearly, love one function to take both parameters. I have a super simple data structure: var stuff = [ { name: "Stone", id: "cc45" }, { name: "Hanley", id: "cc78" } ]; I wish to loop through the structure and run a super simple test on each. Please observe: for (var ii = 0; ii < stuff.length; ii++) { var

When should one use element.isPresent() over ExpectedConditions.presenceOf(element)?

倾然丶 夕夏残阳落幕 提交于 2020-02-24 10:27:33
问题 While end-to-end testing our app, I am often waiting for a state transition (a modal to close, a button to appear, etc). Blind experimentation has led me to sometimes use browser.wait(ExpectedConditions.presenceOf(someElement) , and other times use browser.wait(someElement.isPresent()) . To me, the names imply they're interchangeable. But it isn't so. Is there something about the situations in which I use these that will help me tell which to use when? 回答1: In my experience, I have used

Timeout expired waiting for async script on IE 9

雨燕双飞 提交于 2020-02-24 05:49:08
问题 I'm trying to run some tests (using Protractor) on Internet Explorer 9 - and each test that contains " driver.executeScript " gives an error : Timeout expired waiting for async script (WARNING: The server did not provide any stacktrace information). The other tests work very well. It seems that IE doesn't understand the timeout limit that I add at the end of function (20000 ms) - Timeout expires after ~11 seconds. Is there any WebdriverJS code line to make it wait for async execution? All

Test canvas drawings with Protractor

柔情痞子 提交于 2020-02-20 08:05:28
问题 Is there a way to test if a drawing was made on a canvas using Protractor ? i.e. I draw a rectangle based on user clicks: var shape = new createjs.Shape(); shape.graphics.beginStroke("black"); shape.graphics.drawRect(crd.x, crd.y, crd.width, crd.height); stage.addChild(shape) stage.update() Now I want to make a spec to test if a rectangle was drawn on the specified coordinates and, as a plus, to test if its borders are of color black. Is this possible using Protractor/WebDriverJS API? 回答1:

How to create Protractor reports with Jasmine2

无人久伴 提交于 2020-02-20 06:31:43
问题 I have very recently started to use Protractor lib to test angularjs site.I tried to use below 2 libs to create HTML reports but in both cases I got the error https://www.npmjs.com/package/protractor-jasmine2-html-reporter and https://www.npmjs.com/package/protractor-jasmine2-screenshot-reporter. Platform:- Windows 7 Installation cmd:- npm install -g protractor-jasmine2-html-reporter Error: Cannot find module 'protractor-jasmine2-html-reporter' Config.js var Jasmine2HtmlReporter = require(