automated-tests

Keep getting TypeError: config.suite.split is not a function when running regression tests

江枫思渺然 提交于 2020-08-11 03:42:38
问题 I got the following error when running a sample regression test: TypeError: config.suite.split is not a function Here is the the configuration file. It looks ok but I must have missed something but I can't honestly find what it could be. Configuration.js file (this was working few days ago) var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter'); exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub', specs: ['PageObjectLocator2.js'], capabilities: { browserName:

Keep getting TypeError: config.suite.split is not a function when running regression tests

ⅰ亾dé卋堺 提交于 2020-08-11 03:42:37
问题 I got the following error when running a sample regression test: TypeError: config.suite.split is not a function Here is the the configuration file. It looks ok but I must have missed something but I can't honestly find what it could be. Configuration.js file (this was working few days ago) var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter'); exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub', specs: ['PageObjectLocator2.js'], capabilities: { browserName:

How do i formulate file path for testsettings on the Runsettings file parameter <SettingsFile>

拈花ヽ惹草 提交于 2020-08-10 23:58:20
问题 Whats the proper way to form relative file path/ or file path for the runsettings parameter <SettingsFile>xxxxxAutomation.testsettings</SettingsFile> In my local environment this works but when i push it to build release agents it fails since its looking for the file in a different directory which is my release folder but instead its looking for this file in what appears to be in a folder directory. This is the directory its looking at E:\Agent_work\r10\a\xxxxxxxxx.testsettings, here is my

How do i formulate file path for testsettings on the Runsettings file parameter <SettingsFile>

心已入冬 提交于 2020-08-10 23:56:11
问题 Whats the proper way to form relative file path/ or file path for the runsettings parameter <SettingsFile>xxxxxAutomation.testsettings</SettingsFile> In my local environment this works but when i push it to build release agents it fails since its looking for the file in a different directory which is my release folder but instead its looking for this file in what appears to be in a folder directory. This is the directory its looking at E:\Agent_work\r10\a\xxxxxxxxx.testsettings, here is my

Accumulate all JS warnings and errors during test runs in TestCafe

我只是一个虾纸丫 提交于 2020-08-08 18:00:13
问题 I would like to be able to access all JS warnings and errors from the Browser Console during test runs. With the "-e" (skip JS errors) flag disabled, the test stops at the first error, so clearly it is looking for them. With this flag enabled, I would like to be able to see which errors (and ideally warnings) fired during test runs. I've tried using the ClientFunction and window.onerror methods. I've also tried the -r 'reports' flag -- I only see TestCafe errors, not JS errors from the page

why is drag drop not working as per expectation in cypress.io?

不想你离开。 提交于 2020-08-08 05:17:07
问题 I am trying to automate a simple drag and drop scenario on a website . https://gojs.net/latest/samples/htmldragdrop.html I am going as per the method provided in cypress doc https://github.com/cypress-io/cypress-example-recipes/blob/master/examples/testing-dom__drag-drop/cypress/integration/drag_n_drop_spec.js my sample testcases is : cy.visit("https://gojs.net/latest/samples/htmldragdrop.html") cy.get('#paletteZone .draggable').first().trigger('mousedown', { which: 1 }) .trigger('mousemove',

Click an element if another element contains a specific text. Automated Test with Protractor

折月煮酒 提交于 2020-08-08 05:15:18
问题 I need to check which one of 3 elements contains the text "10%" but I am not sure I am getting correctly the text of the element. When I run the code I am not getting errors but the if condition is always false(also when it should be true). My javascript code inside the spec: await driver.wait(until.elementIsVisible(await driver.findElement(By.css("tr:nth-child(1) .font-weight-bold-light > span"))), 30000) await driver.wait(until.elementIsVisible(await driver.findElement(By.css("tr:nth-child