João Farias
  • Member for 6 years, 6 months
  • Last seen this week
Test case preparation and execution time
5 votes

Firstly, I would be careful when communicating this type of relationship between test cases and your testing, because, test cases are not testing. Promoting otherwise may cause issues both for the ...

View answer
Unit vs Component vs System Testing
Accepted answer
2 votes

Disclaimer: There is no standard / widely accepted precise definitions. The best you can do is to learn about the nuances of different contexts, have your own definitions precisely, but when hearing ...

View answer
End to end application tests when separate repo for the front-end and back-end tests
1 votes

release for a specific microservice, I am guessing we should still ideally be running application end-to-end tests in addition to the tests from the backend repository Why? The service has checks ...

View answer
Why do HTML IDs need to be unique?
0 votes

The meaning of the word "identity" implies its uniqueness. If one says that two things can be identified by the same token, this token doesn't serve to distinguish these things.

View answer
Page Object Model from scratch: Best Practices?
1 votes

For starters, it's good to remember that There are good practices in context, but there are no best practices But I've recently written a blog post on a coding kata for the famous Login Page, ...

View answer
How to pass text dynamically in xpath under Properties file
Accepted answer
1 votes

You can use the String replace method. String city = prop.getProperty("data"); // New Delhi String locatorTemplate = prop.getProperty("locatorKey"); // div[contains(text(...

View answer
No tests in the legacy project - what to start with as tester?
1 votes

You can use the Heuristic Test Strategy Model as a starting point to design your approach for testing (a mindmap version can be found here). By laying out the Project Environment, you will realize ...

View answer
AllureRestAssured , how to ignore logging headers
2 votes

You can blacklist the headers you don't want to see in the report: given().config(config().logConfig(logConfig().blacklistHeader("Accept"))). .. Documentation here.

View answer
Should I push my changes for testing and then work on unit tests?
6 votes

Oh, that's a long one. Let's take two points of view: Pragmatic POV: they insist on faster delivery Saying that TDD would decrease delivery speed is not necessarily true. If you search for studies ...

View answer
How do you do "controlled" exploratory testing of highly concurrent code?
1 votes

Of course, the exact solution will depend on your context (tech stack, test goal, etc), but generally speaking, you would work with polymorphism: Putting the code that controls the threads behind an ...

View answer
Calculate the time for progress bar is finished and throw warning if it takes too long?
0 votes

How can I check for the change in that text You can wait for the visibility of the text in a particular web element WebDriverWait wait = new WebDriverWait(driver, 15); wait.until(ExpectedConditions....

View answer
Writing behavioural features/scenarios for application with many proccesses and sections
0 votes

One thing that may help is to take advantage of Scenario Outlines (jump to section 5 of the link), so you can separate your scenarios from the data you are using (e.g. "SA(STANDARD) values")....

View answer
Should a newbie in Test Automation learn the core underlying framework?
2 votes

Reflection API, has all utilities like ExcelReader Utility class, DB connector classes, Reporting utility, logging classes etc For starters, based on what you described, this is not a framework. This ...

View answer
How can i call classes under other different class?
Accepted answer
1 votes

As @Lee Jensen mentioned, this is called Page Object Model. The basic idea is for your tests to have only application actions, whereas low-level HTML manipulation is hidden deep in structure objects ...

View answer
Should I be using WebDriverFacade or WebDriver or PageObject?
Accepted answer
4 votes

They are two different design patterns. A Facade is meant to make the interface to a library or set of objects simpler. It wraps in simpler methods complex behavior or "outdated" style of ...

View answer
How do you test (currently) unreachable code?
1 votes

It is a classic case for TDD. I would recommend deleting the current design and drive a new design with automated checks, rather than trying to write tests to adhere to your design. For more details ...

View answer
How can i repeat this script many times
1 votes

You can change the script, putting code in a loop: def submit_form(): driver.find_element_by_class_name("submit").click() time.sleep(2.5) driver.find_element_by_xpath("//input[...

View answer
Automate the stable build only
2 votes

It is actually about Automation best practice There are good practices in context, but there are no best practices. I have the understanding that Automation Scripts need to be built on a stable ...

View answer
Selenium Webdriver: HOW TO CLICK IN A BUTTON WITHIN A CLASS OVER OTHER CLASS?
Accepted answer
0 votes

If you are sure that your search criteria is the text, you can use XPath: "//*[text()='Começa a new game']"

View answer
Selenium closing the brower alone after finishing all the function
Accepted answer
3 votes

You are creating the Browser object inside the login function. When it ends, it is eligible for garbage collection. You can pass a pointer to an object outside the function, so it will still have a ...

View answer
Print with specific text selenium & python
1 votes

It will depend on what you want to tell in your code. If you want to remove the text "end-bubble bubble", then you can use replace: service_status.replace('end-bubble bubble','') If you ...

View answer
How to get the count of all the test cases in my Maven Selenium test project
1 votes

You can run Maven in dry run mode, so it will perform the maven test lifecycle, but without executing the tests: mvn release:prepare -DdryRun=true Then you can pipe the output into grep to look for ...

View answer
how to integrate testrail with selenium
Accepted answer
2 votes

You can make a call to TestRail's endpoint add_result_for_case. Example in Java: Map data = new HashMap(); data.put("status_id", new Integer(1)); JSONObject r = (JSONObject) client.sendPost(&...

View answer
Should Page Objects be reused or should new ones be created?
Accepted answer
1 votes

there is a best practice when "There are good practices in context, but there are no best practices." When you first create the LoginPage object, it has the context of the first landing on ...

View answer
Automated tools fot testing Software Architecture
Accepted answer
4 votes

NDepend is the .NET equivalent of JDepend. You can find more info about the metrics here.

View answer
What is an extreme term for Feature creep, Software bloat and Code bloat?
1 votes

"Quality is value to someone (who matters)", Jerry Weinberg. The three points talk about not delivering value to some of the people who matter. Thus you can say the application is of low ...

View answer
Which is the correct page object model design and why?
2 votes

In the first case, you are coupling your tests with the page object through a convention on the strings "email_field" and "password_field" If a change is not done correctly, you ...

View answer
Standards for Test Scenario
3 votes

so that every QA will cover all the defects Short answer: No, because testing is an open-ended investigation process. Long answer: Exploratory Testing 3.0

View answer
How can I count how many times this selenium script has been run in Python?
2 votes

It will depend if where you want to put the responsibility of this tracking. Ultimately, you will have to keep track of the number of runs in the environment where you invoke the script (e.g., your ...

View answer
What are the differences between counting/calculation estimate and estimation by test-cases?
0 votes

Given the definitions above, it seems reasonable to consider them as such. However, it's good to remember that it cannot be used as an estimation for testing, because test cases are not testing. Using ...

View answer
1
2
3 4 5
16