5

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 ...


4

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 ...


3

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 ...


3

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 ...


3

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 ...


3

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 document.querySelector(selector); For XPath, you can test with document.evaluate(selector, document).iterateNext(); Each of these will return the first matching ...


2

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. ...


2

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.xpath("//*[contains(@resource-id, 'read_indicator')]"); If you don't use contains here, you'll need to put in the full resource-id, which is very long. Your ...


2

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 ...


2

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 ...


2

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.


1

Check this official tutorial: https://docs.microsoft.com/en-us/visualstudio/install/install-visual-studio?view=vs-2017 Pay attention to Step 4 where you should select Desktop Development item in order to be able to develop desktop command line applications.


1

Hi are you validating spinner to be visible first ?, _wait.Until(ExpectedConditions.visibilityOfElementLocated(LoadingSpinnerBy)); 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 ...


1

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')]"; https://selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html#presenceOfNestedElementLocatedBy-org.openqa.selenium.By-org.openqa.selenium.By-


1

WebDriver is a way to automate browsers, it doesnt really matter which language binding you use to implement WebDriver testcases, it is possible with all languages (e.g. C#, Python, Ruby, Java, JavaScript, etc..). All web applications use HTML, CSS and JavaScript. So it is all the same. Protractor makes it easier to automate an application developed in ...


1

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 ...


1

Try something like this: WebElement outerElement = driver.findElement(By.xpath("OTER_ELEMENT_XPATH")); WebDriverWait waiter = new WebDriverWait(driver, 100); WebElement innerElement = waiter.until(ExpectedConditions.elementToBeClickable(outerElement.findElement(By.xpath("./INNER_ELEMENT_XPATH"))));


1

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.


1

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: ...


1

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. browser.get("https://www.tradingview.com/#signin") browser.find_element_by_name("username").send_keys("MYEMAIL") browser.find_element_by_name("password").send_keys("MYPASSWORD") browser.find_element_by_xpath("//...


1

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 ...


1

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: System.setProperty("webdriver.ie.driver", "C:\\DriverFiles\\IE\\x32\\IEDriverServer.exe"); // custom stuff IE needs in order to work (some only needed for Win10+) DesiredCapabilities ...


1

I had some problems connecting Appium with iOS devices using Appuim Desktop. My solution was to change Appium Desktop to Appium Studio. Appium Studio makes is easier to work with Apple devices.


Only top voted, non community-wiki answers of a minimum length are eligible