João Farias
  • Member for 6 years, 6 months
  • Last seen this week
Google Chrome browser and driver versioning
0 votes

You can use a container with the Chrome and ChromeDriver. You run docker run --name chromedriver -P -d robcherry/docker-chromedriver:latest and doesn't need to worry about problems with the ...

View answer
Page Object Model: Handling Large Forms
Accepted answer
1 votes

You can further break down your components into other components, by passing the baseLocator as you do with the components. MainPage { baseLocator = driver.find("body") ] MainPage() { ...

View answer
Writing to notepad based on environment
2 votes

In general, what you are looking for is called Dependency Injection: You want to decouple your code from the data it uses, moving the responsibility of sending this data to the callers of your code. ...

View answer
Page Object Model how much abstraction?
Accepted answer
5 votes

As with any piece of software, you can consider a few heuristics when deciding abstractions: 1 - On a higher-level abstraction, Single Responsibility Principle: A component (method, class, module) ...

View answer
What is the approach to create a framework that should handle both Web and mobile app automation cases
1 votes

You can implement your page object as polymorphic interfaces, so your tests will run the same commands, but the underlying code is dispatched in runtime to the specific behavior. interface LoginPage {...

View answer
Make an if/then statement utilizing a non present element
Accepted answer
6 votes

You can either: Look for all element that match certain search criteria: if driver.find_elements_by_css_selector(my_locator): # No element found here Catch an exception when searching for a ...

View answer
Pros and cons of using database dump in autotesting?
1 votes

Why not just stub out the database and deal only with Entities? Databases are details which you can: (1) - Check behavior independently; (2) - Isolate your use cases from. If you want to set up a ...

View answer
What's the difference between integration and contract testing of microservices?
2 votes

The term "Integration checking" are usually misused. Rainsberger has a seminal post called Integrated Tests are a Scam. By "Integrated" he means what is usually called "integration; he uses ...

View answer
How to pass automation test case data from TFS to Protractor using Cucumber/Jasmine
1 votes

TSF exposes HTTP endpoints from which you can fetch data. You can find examples here and here.

View answer
Is there a way to automate multiple tabs using cypress?
7 votes

From the Cypress site: Because Cypress runs in the browser, it will never have multi-tabs support. We do have access to the browser automation APIs to actually switch tabs, but there is no ...

View answer
How to automate functional regression tests through database data comparisons?
Accepted answer
0 votes

Resulting test dataset size is on average 1 000 000 rows in about 20 tables which have about 10 columns each. You are dealing with two different concerns: The calculations are performed by ...

View answer
How to validate a successful file download test senario from selenium
0 votes

The process of downloading a file is a browser activity regarding HTTP requests and the file system. So Selenium is not the appropriated tool, because its concern is limited to the DOM. Selenium ...

View answer
How is test case design different for GUI & API?
3 votes

Note: I will talk about testing itself since the documentation of certain activity is only but a product of the activity itself. I'm not sure is your question is about "the testing for ... is ...

View answer
Is there any possible way to automatically update the locators when developer changes the locators
2 votes

It's call TDD. ;) On a serious side, computers can only mimic inference - AI systems that impress us with apparent inference are still following an algorithm. A computer cannot understand what is ...

View answer
What are good practices for improving quality in a project new to me?
3 votes

best practices on how to start the improvement strategy? what processes/tools would be the best? Nobody will be able to give a precise answer for this, because the value of any practice depends ...

View answer
Percentage of time of an evaluation used to perform the evaluation
Accepted answer
1 votes

What is the average percentage of the time evaluated that should be used to perform the evaluation? I would say that the question itself doesn't make sense, because "the value of any practice ...

View answer
Automatic testing of Single Page Web Application
2 votes

data structure changes, the data will be outdated Yes, and the failure shows that your frontend application is no longer compatable with the service. The problem is that you are mixing semantic ...

View answer
calculating minimum test cases for 0-Switch coverage
2 votes

0-switch coverage is basically the testing for each valid transition. Since you don't have loops, you simply count the number of arrows. 1-switch coverage relates to the number of pairs of valid ...

View answer
Avoid default selection when selecting random value from dropdown
Accepted answer
1 votes

You can simply filter out the invalid options from the list: List<WebElement> items = driver.findElements(options); List<WebElement> validItems = items.stream() ...

View answer
Unable to click on 'sign out' link
2 votes

Selenium probably is not working properly against this Angular custom element. You can try to execute Javascript to perform the clicking. JavascriptExecutor js = (JavascriptExecutor)driver; ...

View answer
How to respond to requests to retest, in hope that the bug is gone?
5 votes

James Bach says, "Testing is the process of evaluating a product by learning about it through exploration and experimentation, which includes some degree: questioning, study, modeling, ...

View answer
Setup of Test automation framework from scratch using NUnit and Specflow and RestSharp and selenium with Visual Studio 2017 C#
1 votes

You seem good to go with some service testing. NUnit -> I want to use parallel test methods execution/calling with Priorities using C# similar to TestNG in Java. //Arrange //Act //...

View answer
Difference between Test coverage and RTM?
1 votes

Test coverage is an umbrella term for any type of objective number on risk investigation some testing endeavor have performed. One type of coverage is Requirement / Acceptance Criteria coverage: "...

View answer
How can it be verified that all automatic updates for the host operating system are blocked?
1 votes

There are OS that force updates and others and won't update unless you act. The latter is naturally not a problem. For the former, I see two options: 1 - You can run inside a Virtual Machine, using ...

View answer
Selenium PageFactory vs Page Object Model
Accepted answer
8 votes

Page Object and Selenium's PageFactory are distinct things in nature, usually the latter complement the former. Page Object is a design pattern aimed at solving the problem of separating the ...

View answer
Can I deactivate a Sonar Qube rule just for test classes?
0 votes

You can only suppress warnings at the project level, as you said, and at the file/method level. For file/method, it will depend on your language. In Java, you would add an annotation such as: @java....

View answer
Selenium JUnit tests each with different logged in (authenticated) users
0 votes

You can use a bit of inheritance, which helps you to extend without dealing too much with data providers: public abstract class AbstractTest extends TestBase{ protected User user; protected ...

View answer
What are valid bugs
Accepted answer
14 votes

One of the Context-Driven Testing principles is: The product is a solution. If the problem isn’t solved, the product doesn’t work. Another way to say this is that software should work for its ...

View answer
How to control the state of databases in between API Tests?
1 votes

You seem to have a REST design problem that is affecting the testability of the system. Firstly, the POST could return the created entities (or references to it). Secondly, the GET could have a ...

View answer
Getting key and respective value in ng-repeat using Selenium and Python
Accepted answer
0 votes

The idea here is to apply the findAll - filter - extract pattern. Find all: ng_scopes = driver.find_elements_by_class("ng-scope") Filter: ng_scopes_with_status_one = [ng_scope for ng_scope in ...

View answer
1
3 4
5
6 7
16