6

While this depends heavily on what part/functionality of a web app you want to test, there is a place and time for both. For example you might have a pop-up for informing the user about a cookie and have him accept (or decline) it. Typically this pop-up would only show for the first visit, making incognito mode ideal for repeatedly checking the pop-up ...


6

Here is the completed example that demonstrates how you can modify requests from your Selenium tests. To demonstrate one I have created a sample REST mock service via SoapUI that would return just a {"SUCCESS"} message for any response. The test code (TestNg is used for test running, and borwsermob-proxy for proxying requests): public class MiscTests { ...


3

Selenium doesn't have API to do that. You need to use something external. As Alexey suggested one of the solutions would be setting up proxy like this.


3

You cannot achieve it by Selenium, but as you mentioned you are using BrowserMobProxy , I would recommend you to try once below . Apache Module mod_headers ( Refer : http://httpd.apache.org/docs/current/mod/mod_headers.html#page-header ) You can also install Fiddler (http://www.fiddler2.com/fiddler2/) which is very easy to install (easier than Apache for ...


2

1st of all, Stop the blame game when defect is found in production Address the issue and try to fix it through config or how to apply workaround, in the mean time trigger R&D with required logs and traces. Let R&D investigate and support them on their queries. Analyse its impact with on production and provide a date for fix. At R&D lab ...


2

Unfortunately, I don't think it's as easy as running a website through a tool and have it tell you whether it's ADA Compliant or not. Take a look at W3's article on 'Web Content Accessibility Guidelines requirements (success criteria) and techniques' - you'll need to go through each of the requirements and test for compliance that way. The article below ...


2

In my experience, terms like "framework" get overloaded and can mean different things to different people/roles/job titles. I tend to use "library" when talking about commericial or open source tools like Selenium or Appium, as they are a collection of APIs to use to build test automation, which is a framework or collection of tests to perform against an ...


2

I would say you need to test app it in both modes if you're worried about caching issue. Most of the (functional) testing would be in incognito mode (you are testing how application works, not how it's caching data). The application must work for new users (it's even important than working for retention users) if you want to keep them coming back. Also ...


2

data structure changes, the data will be outdated Yes, and the failure shows that your frontend application is no longer compatable with the service. The problem is that you are mixing semantic checking and syntax checking. Semantic validation of a service is done by the service itself - a service knows about the business rules and entities it manipulates:...


2

Usually, web application testing services follow the approach of covering both the browser modes during web app testing. Testing in Normal Browser Mode: This should be tested majorly for regular users in the app Cache/Cookies are locally stored on a user's machine, so validation is required, that the user does not encounter any issues due to caching ...


1

I never test manual in incognito mode, now that I am thinking about it I do not see a lot of value in it. Automated tests will run against a fresh profile anyways. Manual testing is more for exploring, not for regression-suites. Your examples are valid, but should be seperate test-cases where you explicitly test that situation. Other reads: https://...


1

(OP here) I finally found out why this way of verifying pdf wasn't working. I made the false assumption that every platform (Firefox, Chrome, Edge, Safari, etc...) was displaying pdf the same way. But, this isn't the case. So, my code was working fine using Selenium + Java because I was also using Firefox driver. However, new relic synthetics doesn't ...


1

This chapter from official ADA website would probably help you. This is Website Accessibility Under Title II of the ADA.. They state accessibility problems and possible solutions. You can use this as asepcification for your testing.


1

The quick answer is: String before = driver.getPageSource(); // Do whatever for page refresh // Make sure there is a delay for the whole page to load String after = driver.getPageSource(); assertFalse("ERR: Source is the same", after.equals(before)); There are much better ways to do comparisons but you should get the idea. Comparing the entire source is ...


1

No. The selenium tests do not need to run on the same server that is serving the application code. When you are using selenium you are using a web browser to access HTML pages - not code - that the application has been prepared. The main concerns I would consider are whether these additional process present any network or memory issues to that server In ...


1

Smoke tests are typically executed as a part of the deployment, and if it fails the deployment should be rolled back. Smoke tests are typically purely functional, but can of course also be used for also checking latency. If you are talking about regression tests, these should be executed on each pull request (to avoid messing up the main branch(es)), and ...


1

No, but they could. Typically the test-runner runs on a build-server agent. The build-server builds a build, deploys it to a test-environment and runs the end-to-end tests against the environment. If the agents and the test-environment are in the same network/cloud the network overhead is probably irrelevant anyways. I would advice the simplest thing that ...


1

You can check that the text-overflow is not ellipsis with WebDriver/Selenium. In Python: assert element.value_of_css_property("text-overflow") != "ellipsis" in Java: element.getCssValue("text-overflow") https://seleniumhq.github.io/selenium/docs/api/dotnet/html/M_OpenQA_Selenium_IWebElement_GetCssValue.htm


1

James Bach created the Heuristic Testing Strategy Model as a tool to exercises of test plan creation. It is divided in 5 areas: Project Environment includes resources, constraints, and other elements in the project that may enable or hobble our testing. Sometimes a tester must challenge constraints, and sometimes accept them. Product Elements are things ...


1

This answer focus on the phrase "and not during the QA phase". This indicates to me that the main concern right now is blame. There is a quite a natural tendency to want to blame someone. Like QA. However this goes nowhere fast in terms of fixing it and also improving quality for the long term. Instead it creates - or continues - a toxic environment of ...


1

There is a network throttling setting in chrome devtools. It has a couple of preconfigured profiles (3g, 4g, etc.) and a possibility to set custom download, upload and latency settings. Accessible through network tab, here:


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