New answers tagged

0

I need to open and click on the link which is sent in the mail. You can go to Outlook.com and grab the last email using Selenium. You would do this if there isn't something like MailTrap in place. I did this for Gmail when testing a WordPress site. The only catch is that the email sites will update without your knowledge, potentially breaking the scripts ...


2

It's an single integration test. First of all it has nothing to do with playwright, it's common automation scenario which can occur while using any automation library/frameworks. I have faced this similar scenario in qtp, selenium, protractor, and playwright . Usually this will be an single integration test where we dynamically store ID on a test level ...


3

One test. Two setup steps. What you have described is very common, particularly as test scenarios get more complex. What you need is one test with setup that does the user logging in, the user selecting the item (save the id) and then deleted and then you go the dashboard. So don't think in terms of your two existing tests, think in terms of a new test but ...


0

Why don't you change the config in the non-prod environment as to your needs for testing? Configuration could/should be easy to change, so change it to the prod value, and test what you need. Is there somethnig deeper I don't get from your question? I don't know, but the general principle is you need to be able to control things in order to test, which seems ...


0

Try this System.setProperty("webdriver.ie.driver", "C:\\Users\\Downloads\\Selenium\\IEDriverServer_x64_3.150.1\\IEDriverServer.exe"); InternetExplorerOptions options = new InternetExplorerOptions().setPageLoadStrategy(PageLoadStrategy.NONE); options.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, ...


0

In software testing service you can achieve this using multiple ways. One of the way is as follow. Write a code in your class that implement 'IRetryAnalyzer' just as below. package com.mavericks.qa.RetryListener; import org.testng.IRetryAnalyzer; import org.testng.ITestResult; public class RetryFailedTestCases implements IRetryAnalyzer { private int ...


1

More than 3 min per test, is actually huge execution time and can be reduced drastically: As my thumb rule: UI test should never go over 1 minute, if it is , find a way to reduce it or break it up in a smaller test. I discovered the following points while speeding up my protractor(selenium) tests: Run tests in a headless browser(from version 59, chrome ...


0

Simple alternative using 'includes' Responses also can be verified simply using 'includes': (by including the desired unique substring from the url) page.waitForResponse(resp => resp.url().includes('/assessment/xyz/') && resp.status() === 200)


6

A strategic approach If you cut a couple of hours and don't make other changes than next week more tests will be added... and the time will increase again. So this is an excellent opportunity for a discussion on strategy. Not to seek immediate answers (hence I'm not providing them), but to start the conversation for your given situation to see what will ...


0

If this were my dilemma, I would start here: Prioritize the tests (High/Medium/Low) then decide if you really need to run all Distribute the test execution (between multiple PC's or VM's) Avoid sleeps whenever possible. I would try to implement a reusable polling wait method that escapes and continues the test as soon as an element is found and interacted ...


2

Management usually likes to have reasoning in terms of time/money, so I'd go with the following approach: Take last X (e.g. 30) executions and get average execution time for the whole suite and each test scenario Select top 10-25% scenarios which take the most time on average to execute Create a nice presentation view (e.g. table) with current execution ...


0

Shall I consider this behavior as a SW issue? I should say so. You might even consider it a usability or accessibility issue. If something happens against what you expect you should file a bug. It can always be closed after investigation.


1

From your question I see that you want to make a smoke test on a production system. Testing on production could be very risky in some scenarios. So there are few questions that you should analyze: Do you change the state of the system accessed only with specific user or they will be available to all prod users? If the data is available to prod users for me ...


0

What is the best way to proceed? The best way to proceed is to talk to your management and understand future development requirements, budget, business priorities, deadlines etc Hiring a QA automation Lead to build FW and start implementing tests? This is recommended only if your responsibilities and the new QA Leads responsibility doesn't overlap. But for ...


0

The easiest way to remove the error:: Cannot get a STRING value from a NUMERIC cell --> Go to excel --> Put an apostrophe at start of numeric data cell. When the code will run, it will consider the cell value as String and will not throw any such error.


Top 50 recent answers are included