browserstack

Failing a Jenkins job when nightwatch test assertion fails in Browserstack

﹥>﹥吖頭↗ 提交于 2019-12-11 18:33:43
问题 I have a Jenkins job that runs Selenium tests on Browserstack via the Nightwatch.js framework. We have an entire suite of tests that nightwatch runs in separate processes, and we need a way to get the pass/fail value back to Jenkins after all tests have run. I have been trying to use the Nightwatch hook teardown to run a piece of code at the end of each module with if(this.results.failed) { take action } , but I can't figure out what action I need to take in order to make the failure

Running Parallel Tests using Gauge Framework with Browserstack

邮差的信 提交于 2019-12-11 08:25:55
问题 I'm using Gauge framework and Browserstack for my test scenarios. I'm researching how can i parallel execute my test scenarios(.spec) using browserstack? I read many documentation but I couldnt see anything about Gauge framework to run parallel test. I tried to use Junit or NG but i couldnt adapt them.Is it impossible? Any ideas? 回答1: Luckily, Gauge has support for running specs in parallel by setting a flag and specifying the max number of threads allowed: gauge --parallel -n=4 specs

Protractor tests with BrowserStack iOS emulators

夙愿已清 提交于 2019-12-11 06:18:48
问题 I've already spent much time for it, but still have no significant results. My protractor tests work fine with browserstack Firefox and Chrome. But with Safari browser they don't. Protractor tests are not executed synchronously in such case, and running tests with synchronization turned off completely messes up all tests too. Does anyone succeeded with running his protractor tests in Safari on browserStack???? 回答1: I am able to successfully run on browserStack using safari browser. This is my

Detect broken SSL or insecure content warning with Selenium, BrowserStack, & Node.js

孤者浪人 提交于 2019-12-11 02:45:00
问题 I'm trying to setup some automated testing using Browserstack's Selenium and their Node.js driver. I want to check if the page is showing any insecure content warnings when accessing the URL via HTTPS. Is there a way to detect that in Selenium? If one browser does it easier than another that's fine. 回答1: Here are a few different ways to detect this using Selenium and other tools: iterate through all links and ensure they all start with https:// (though via Selenium, this won't detect complex

how to modulate my functions as seperate parallel tests?

那年仲夏 提交于 2019-12-08 10:52:30
问题 I am using nightwatch.js and browser stack and am running a series of test functions that look like below; that run through my application from login point to deeper actions. i.e. this.TeamPanel = function(browser) { browser .url(Data.urls.oppListing) .waitForElementVisible("div#team.btn-icon", 1000) .click("div#team.btn-icon") .waitForElementVisible("div.side-panel.open", 1000) // .waitForElementVisible("div.box.team-member-summary-wrap.editable.fade-enter-done", 1000) //

Expect: does not get the actual value

两盒软妹~` 提交于 2019-12-07 22:37:14
问题 I faced with very strange problem. I had a set of tests which I run daily on Jenkins and without any noticeable changes some asserts(expects) started fail. THe strange thing here is that they fails ONLY if I execute tests from Jenkins on Browserstack. Locally everything just fine, locally on browserstack everything is fine, on saucelabs everything is fine. I have 3 it() blocks with similar expects: value1 = $('.someclass'); value2 = .. value3 = .. expect(value1.getText()).toContain('tratata')

Expect: does not get the actual value

若如初见. 提交于 2019-12-06 11:53:14
I faced with very strange problem. I had a set of tests which I run daily on Jenkins and without any noticeable changes some asserts(expects) started fail. THe strange thing here is that they fails ONLY if I execute tests from Jenkins on Browserstack. Locally everything just fine, locally on browserstack everything is fine, on saucelabs everything is fine. I have 3 it() blocks with similar expects: value1 = $('.someclass'); value2 = .. value3 = .. expect(value1.getText()).toContain('tratata'); expect(value2.getText()).toContain('uhuhuhu'); expect(value3.getText()).toContain('ahahaha'); they

Ruby selenium cannot load such file — selenium-webdriver (LoadError)

时光毁灭记忆、已成空白 提交于 2019-12-04 16:07:06
I'm trying to utilize BrowserStack's automated testing using ruby with Selenium WebDriver with Eclipse. Here is the code i'm trying to run: require 'rubygems' require 'selenium-webdriver' # Input capabilities caps = Selenium::WebDriver::Remote::Capabilities.new caps["browser"] = "IE" caps["browser_version"] = "7.0" caps["os"] = "Windows" caps["os_version"] = "XP" caps["browserstack.debug"] = "true" caps[:name] = "Testing Selenium 2 with Ruby on BrowserStack" driver = Selenium::WebDriver.for(:remote, :url => "http://xxxxxxxxxxxxx:xxxxxxxxxxxxxx@hub.browserstack.com/wd/hub", :desired

How to properly set up Java/Selenium configuration to run automated tests?

吃可爱长大的小学妹 提交于 2019-12-04 05:49:23
I am trying to set up selenium webdriver to work together with Browserstack with Java for automated testing. I installed the Selenium for java and I copied and pasted the code from browserstack's site https://www.browserstack.com/automate/java#configure-capabilities to set up an example automation test. I ran javac -classpath selenium-server-standalone-2.48.2.jar JavaSample.java from my terminal (JavaSample.java is the file with the selenium configuration code with the sample test) and I get the following error: JavaSample.java:1: error: package org.openqa.selenium does not exist import org

Browserstack reports successful even when test fails in Nightwatchjs

无人久伴 提交于 2019-12-04 03:17:46
问题 I just started using nightwatch with browserstack and I'm noticing that when we get a failed test, nightwatch registers the failure, but browserstack does not. sample test I am using. Also I am using free trial version of BrowserStack. My question is: Are there any ideas how to tell browserstack when a test run failed ? From BrowserStack doc: REST API It is possible to mark tests as either a pass or a fail, using the following snippet: var request = require("request"); request({ uri: "https:/