1. Trust your code and doubt SUT (Software under test):
If everything was working fine and the test starts to fail suddenly. Instead of debugging your code for issues, start with checking the actual product. Do some visual inspection and see whether the development team has modified the element or the element is no longer being displayed.
2. Trust your ...
Measuring test effectiveness is a great question.
So many in our industry focus on "Tests, number of tests, how long they run, how often they fail", all without looking at the key question "How effective is my testing?"
In order to evaluate tests, start with the business value. Ask questions such as:
What is the software release cycle?
Once every 6 ...
You cannot test frontend using JMeter mainly due to its main constraint, as per JMeter project main page:
JMeter is not a browser, it works at protocol level. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however JMeter does not perform all the actions supported by browsers. In ...
JDI Light framework aims to do just that - https://github.com/jdi-testing/jdi-light/blob/master/README.md
Develop an automation framework based on AI that can identify and write correct stable PageObject automatically without engineers effort, generate smoke tests for application in seconds and some negative cases too. Run test execution automatically and ...
Although this question has been asked two years ago, it is still a current topic.
Regarding payment; money does not really affect the motivation of people (see: Harvard Review ) So I wouldn't raise salary just to motivate people..
But based from our projects experience we faced the same situation as you. We got unmotivated testers. Hence we reflected the ...
PDHide's answer is good in general, but since you specifically ask about verifying selectors, I would like to add that you can test them in a browser console. For CSS selectors, you can test with
For XPath, you can test with
Each of these will return the first matching ...
Share a Page Object Identification File, or service, or database table, etc.
If necessary add converter(s) to the format either party needs.
This will heavily encourage opinions, discussion and compromise... and the payoff is to achieve the overall goal and reduce (mostly eliminate) the current issue of locators being changed unknowingly from happening.
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.
If you don't use contains here, you'll need to put in the full resource-id, which is very long.
These seems to be fundamental WebDriver Python questions, maybe you should think about following an online course first. I like the trail and error approach, but as you can see your questions get downvoted, because they are so basic.
Be sure to check the documentation of the WebDriver Python API: https://selenium.dev/selenium/docs/api/py/index.html
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 the meaning of a check nor it can understand the meaning of change in the SUT. These two factors mean that a computer cannot understand how to change a check in ...
Finally, this solution works for me --
Instrument the Istanbul.js.
Use Command -
istanbul instrument test.js >> test-instumented.js
Now, use the below code in @AfterClass annotation. It will execute the below method after all tests.
4. Now, we have coverage.json.
Crete a HTML using coverage,json using istanbul report.
Check this official tutorial:
Pay attention to Step 4 where you should select Desktop Development item in order to be able to develop desktop command line applications.
Hi are you validating spinner to be visible first ?,
sometimes spinner takes time to be displayed, and by that time your invisibility condition will be true. So you will have spinner being displayed in the next step
The correct approach would be to:
validate that spinner is ...
When you use xpath that is to locate nested elements you have to start your query from .. Like String query = ".//*[contains(@resource-id, 'delivered_indicator')]";
Protractor makes it easier to automate an application developed in ...
There are some AI solutions that can auto fix selectors. I am not yet really sold on it, but might be worth researching.
I would try to create a common model between the UI code and the test page objects. I have never actually done it, but I think this is the way togo. Simple example would be putting the label text of buttons in an central class and let the ...
I'll consider XPath. It seems you'd need to use text() as well:
//span[@class="filtervalue" and contains(text(), "Search")]
You don't need to use contains(), you can use just text()=, but it seems to me that the text value might change, so contains() might apply even after the change.
Actually this question shows the lack of basic research from your side.
Before learning a tool and technology, we should have a clear understanding of why we need it in the first place.
In your case, you are trying to automate the login process for the tradingview webpage.
So first understand what are the manual steps involved and then automate it:
The Trading View website has no login on that url. You could try to visit https://www.tradingview.com/#signin or click the Sign In button first.
If you were not explicitly quitting the driver before and you are not doing that now as well then the change could be because of the change in below two areas
Probably something in the logic of how you start/quit your driver and/or tests.
Probably the change could be in the behavior of the application being tested.
In my experience the issue you are ...
MicrosoftWebDriver.exe is the Edge driver, not IE driver. As others have mentioned the IE driver is called IEDriverServer.exe.
As an example of a launcher for IE:
// custom stuff IE needs in order to work (some only needed for Win10+)