automated-tests

Selenium (Python) >> selenium.common.exceptions.NoSuchFrameException:

北城余情 提交于 2021-02-05 08:12:05
问题 I've been trying to enter to an iframe and write text in a search bar ( tag) in Safari: I can't post the html because it's huge and it isn't mine but this is the iframe code: <iframe frameborder="0" id="contentIFrame0" name="contentIFrame0" title="Área de contenido" style="border: 0px none; overflow: hidden; position: absolute; left: 0px; right: 0px; height: 100%; width: 100%; visibility: visible; display: block;"> (...Content of the iframe...) </iframe> Here is python code: wait.until(ec

Selenium (Python) >> selenium.common.exceptions.NoSuchFrameException:

只愿长相守 提交于 2021-02-05 08:11:10
问题 I've been trying to enter to an iframe and write text in a search bar ( tag) in Safari: I can't post the html because it's huge and it isn't mine but this is the iframe code: <iframe frameborder="0" id="contentIFrame0" name="contentIFrame0" title="Área de contenido" style="border: 0px none; overflow: hidden; position: absolute; left: 0px; right: 0px; height: 100%; width: 100%; visibility: visible; display: block;"> (...Content of the iframe...) </iframe> Here is python code: wait.until(ec

What is the difference between maxSession and maxInstances when using Selenium Grid for parallel testing

我的梦境 提交于 2021-01-29 14:28:36
问题 I am new to selenium grid. So can someone please explain me the difference between the maxSession and maxInstances . And also how many parallel browsers can be used in one node? 回答1: As per the documentation by default, starting a Selenium Grid Node allows for concurrent use of 11 browsers, comprising of 5 Firefox , 5 Chrome and 1 Internet Explorer browser. The maximum number of concurrent tests is set to 5 by default. To change this configuration and other browser settings, you can pass in

Testcafe concurrent load test performance

折月煮酒 提交于 2021-01-29 14:17:08
问题 I am trying to run a load test on my web application with Testcafe, by concurrently running a single test for each "user" in the system. I need to run 1000 instances of the test but ran into a resource problem on the test side - running multiple Testcafe instances is very resource heavy and I was wondering if anyone knows a way to run a batch of Testcafe tests concurrently without the performance overhead? 回答1: As an alternative, you can run TestCafe in an AWS lambda with a headless browser.

How to check the current Activity in a UI test

五迷三道 提交于 2021-01-29 14:08:42
问题 For tests I use Espresso and Barista I have a test in which I need to open another screen by pressing a button. How can I check if this screen opens? Did the screen I need open? Can I somehow check the chain of screens? To understand that the screens open in the order I need? If someone throws links to good tutorials on UI tests in Android, I will be very grateful. 回答1: An easy solution would be to just check for an element of the new screen to be shown like this: onView(withId(R.id.id_of

Rails - Singleton class troubles with rspec feature

跟風遠走 提交于 2021-01-29 10:32:36
问题 I have a problem testing a functionality that depends of a Singleton class. That class (ERPDao) is a suite with diferent methods that helps application to connect with external ERP vía REST services using Faraday gem. URLMaker is a helper class for build requests strings. When i try to run a feature spec that depends of one of this methods i have the following message in rspec: Failure/Error: result = ERPDao.instance.get_credit_info(erp_id) NoMethodError: undefined method `instance' for

Cucumber Order of Execution - Ruby

非 Y 不嫁゛ 提交于 2021-01-29 05:53:59
问题 Is there a way to specify order of execution inside cucumber? For example, rather than running cucumber feature/foo/foo.feature feature/foo/bar.feature to have those execute in that order... I want to run bundle exec cucumber and run in that specified order. I know that features/scenarios should be independent of each other but for the current tests I'm running it's not practical. If there is no "official way" (which seems to be the case) does anyone recommend a good design to implement such

TestNG Parallel Testing, Opens two browsers but runs all tests only in 1 browser

丶灬走出姿态 提交于 2021-01-29 05:11:31
问题 When I run this code, first it opens two Browsers ( Chrome ) and goes to the base URL. But here is the confusing part for me. When the browsers are open, out of these two browsers, only one browser will receive test commands. In my cases, I am running one class and this class has two test cases. but all of the test cases will run in one browser. 2nd browser just open and goes to the bases URL BASE CLASS : package com.cross.base; import io.github.bonigarcia.wdm.WebDriverManager; import org

How do I link and scale multiple docker containers?

耗尽温柔 提交于 2021-01-29 03:20:13
问题 I would like to use Selenium Grid's Docker images to execute tests in parallel. In order to do so, I wish to dispatch each test suite to a different browser node. Each node would have to be paired up with its own dockerized server so that the tests may run. So my question is what is the best way to link the container pairs? Is there a way to easily scale the server-node pairs, perhaps with Docker Compose? I am pretty new to all of this, so apologies if what I am trying to achieve isn't very

Karate-UI Automation - How to close Location allowance window (Chrome)

元气小坏坏 提交于 2021-01-29 01:55:22
问题 I am using Karate-UI Automation Software. I run my test scenario under Chrome browser. When I go to page where map is displayed (e.g. Mapbox) user is asked about Location allowance (screenshot) with buttons Allow and Deny. Is there some easy trick to confirm/deny/close dialog in scenario step? - in feature file. location allowance Thank you for your advice. 回答1: Is this the Chrome dialog that does not impact the flow of the test but just stays there and is somewhat irritating ? I'm sorry I