anonygoose
  • Member for 3 years, 2 months
  • Last seen more than a month ago
How long should a test wait to assume that the result remains fixed
6 votes

In this kind of situation on a development server I would be looking to get some information from the system itself to tell me when it has finished doing something. I would expect the queuing system ...

View answer
The scope of automated API testing for a SQA tester
4 votes

I would personally go for approach 2 wherever possible. If the API itself is capable of making its own state changes, then it's a safer and more accepted way of doing things. If you make direct ...

View answer
assertequals() returns true but make my test case failed
3 votes

Looking at your code, you appear to be asserting that a string and a boolean value are equal. That isn't going to work! This is what you're doing, essentially: assertEquals(true, "United States"); ...

View answer
Can someone identify the name of this product development cycle?
3 votes

This is a bit of a non-answer, but I think the easiest way to get to the bottom of where these terms come from is to ask your team. It's absolutely fine to ask for clarification when people use terms ...

View answer
How to automate a test case which requires an overnight batch job to run?
3 votes

Have the developers provide you with a way of triggering the scheduled task outside of its normal time slot. Where I currently work this is provided as a webpage that has all of the possible ...

View answer
Mobile automation: Boss wants 100% coverage. How feasible is that?
3 votes

It depends what they consider 100%, but my basic answer would be 'no' especially if these are UI level tests. Tests at this level are slow and expensive to write and maintain. It looks like you know ...

View answer
Cannot find an element with Xpath in Appium
Accepted answer
2 votes

When querying Android apps with Xpath there is no id attribute. There is a resource-id attribute instead. Appium is doing work behind the scenes to still provide By.id as a locator despite this. By....

View answer
how to fetch the list of values from radio button?
2 votes

I don't think you need to iterate through them. Just target the correct element, your xpath could look like this: //li[@data-cy='roundTrip'] One of the problems with your current xpath is you're ...

View answer
How should I perform an E2E test for a report that updates only once per day?
2 votes

We have a lot of this kind of report where I work. Our developers provide the following in order to test them on Dev/test servers: A webpage that allows the report update/generation task to be run. ...

View answer
Unit Test - Testing API Methods
2 votes

How I'm reading it, they confusingly refer to 2 different bits of code as GetById here. In the first instance they're referring to this method on the ShoppingCartController: public ActionResult<...

View answer
How to create generic Java code to make REST API calls?
2 votes

I believe Alexey and MivaScott have provided good advice here. I would like to add some additional thoughts on why coding to use any possible REST API client may not be the best idea. Some of this ...

View answer
To build a framework or a set of libraries?
2 votes

This is a very complex and opinionated subject. 'Framework' is also a vague term that means many different things to different people. In the way you're splitting them out, I would say "Choose both"....

View answer
Is there a name for this type of bug where a bool is overwritten on every iteration of a loop giving an invalid result?
2 votes

I'd say it's enough to call it a logic error. In computer programming, a logic error is a bug in a program that causes it to operate incorrectly, but not to terminate abnormally (or crash). A logic ...

View answer
Having trouble automating Android testing with Appium
Accepted answer
1 votes

Make your tests independent of each other. Jest has the concept of beforeEach and afterEach functions. Use these to start and quit your Appium session for each test. When the app opens for each ...

View answer
Automated tests for shop basket - how to handle not known number of arguments in test with Junit
Accepted answer
1 votes

It looks like you're using Junit 5. If that's the case you can take advantage of the MethodSource annotation, which allows you to create a method that returns the values you want the tests to run ...

View answer
How to run script continuously in selenium even Assertion is fail or Pass
1 votes

Your test is failing. You should not alter the test so that it passes unless there is an obvious error with your code. If this is not a real test, and just a utility to tell you what pages this ...

View answer
Rest Assured Vs. Apache HttpClient performance
1 votes

According to this question Rest Assured is pretty slow on the first request you make. Looks like it has to warm up a little for some reason. I've tested version 4.0 of Rest Assured myself, and this ...

View answer
What is the difference between hasNext() and next()?
1 votes

I think Kannathasan has explained the difference perfectly, but I'd like to add some context: Making the assumption that you're using Java, they're part of the Iterator interface as described here: ...

View answer
I have added Assertion in my tc and make the login tc failed but I am not getting any output on console provided in assertion
1 votes

AssertTrue(true, "message") is always going to be successful as you're asking it to assert that true is true! You need the first argument of assertTrue to be something that will fail if the login was ...

View answer
How to design automation framework when the app to be tested has 500 web pages?
1 votes

As a simple answer to your question: Page Objects scale well. And more on the guidance side of things... Should you be testing 500 variations on the same pages using 500 unique page objects? No, ...

View answer
find xpath for 'PAINEL DE CONTROLE EDITORA'
1 votes

Looks like this is a situation where dot works and text() does not. I don't understand dot enough to know why at this point, but the answers on this question go into detail about it: https://...

View answer
How to write test cases for the problem that is explained below
1 votes

Two immediate things stand out to me here without putting much thought into it Test the boundaries of the day values get the correct discount applied. Test that the year is being calculated correctly....

View answer
How to automate when you do not get any id or xpath
1 votes

The element you've highlighted in the inspector is a WebView. A developer would have to provide a build of the app with WebView debugging enabled in order to view and interact with the elements ...

View answer
Find element and click on it in a complex structure
Accepted answer
1 votes

@FindBy will only locate one or multiple elements by a static string, with no way to provide arguments that I know of. I would recommend creating this as a method rather than a @FindBy annotation, as ...

View answer
Not able to switch back to the parent window of Internet Explorer 11 using selenium (java)
1 votes

It's been a long time since I've automated IE11, and forgot how much of a pain it is. Make sure you've followed the setup guide located here https://github.com/SeleniumHQ/selenium/wiki/...

View answer
Possible scenarios for a periodic task that is run daily at 11:40 PM to process a data set available globally
1 votes

It sounds like you already have a scenario that isn't working, but the developers don't think that it's likely to be a problem. My suggestion for your situation is to work closely with the developers ...

View answer
Trying to retrieve the data from text box
Accepted answer
0 votes

You should be trying to retrieve the value of the field, as text entered into one is not stored in "text". Give this a try instead of .getText(): .getAttribute("value")

View answer
How to bring elements to view automatically in Protractor or selenium
0 votes

If I understand the question correctly, you only need to manually move to the element on test failure. In normal circumstances, the driver is automatically moving to any element it needs to interact ...

View answer
Compilation error when iterating through While loop, compilation error at line no. 10, start of While loop
Accepted answer
0 votes

While statement should begin with a lowercase w. while(tr.hasNext()) { //getting compilation error here, asking to add ; System.out.println("index" + tr.nextIndex() + "value" + tr.next()); }

View answer
Trouble deleting NaN in input field
Accepted answer
0 votes

Looks like you may want to use the javascript executor to get around the validation modifying the value inside the field between the Clear and SendKeys actions. IWebElement field = driver.FindElement(...

View answer