Moving on – Chrome DevTools could be used in web and mobile testing. Any tester should take advantage of it, because those tools are free and easily accessible. Let me introduce the most useful ideas for testing purposes, maybe you’ll come up with some new ones?
I hope that my super-fantastic screenshots enable you to find all the options and play around.
#1 Resizing and Rotating
As I said some time on my presentation, it is very important to check UI of your website on mobile browsers. Different ones. When we proceed manual tests (or don’t test our websites at all) it may happen that they are useless on mobile devices. And I am not talking about web applications, but also about any website accessible via web browser on your smartphone.
I am able to enumerate number of such examples – the most spicy you could find on my Twitter. If you find your ugly page here or on my Twitter – it’s nothing personal. i just want the web-world to be a better place 🙂
So… to avoid this:
Use the “Responsive” option in Chrome DevTools in order to make sure that majority of different screen resolutions is covered.
Remember – over 50% of google searches come from mobile browsers nowadays!
We can select a number of different mobile devices from the drop down menu in order to test with the different screen sizes. Chrome also tells us the screen dimensions of the device in the top menu as well, what is more, you are also able to rotate the screen. Screen rotation is also a common cause of mobile bugs, as the mobile website layout changes when the screen is rotated and page elements may need to reload.
It won’t pretend the real device, but give you lot of hints what other tests should be performed on your application.
#2 Console – debug
Either a developer or a tester is able to debug a website on mobile device (I wrote here how to connect your smartphone with Chrome DevTools).
#3 Network and Throttling
The Network option allows you to observe the order and time of loading elements. You are provided with insights into resources that are requested and downloaded over the network in real time. It very important in mobile testing as users expect that mobile apps would work smooth and fast.
- Open DevTools (F12)
- Click the ‘Network’ tab
- Click Throttling in s row below
- Select which type of connection you want to imitate
- Reload the page to see assets downloading at that connection speed
The Network tab in Chrome DevTools has an option to faux throttle your network, so you can experience what your users might see visiting your website on 3G, 2G and EDGE connections. Throttling option is also useful for visualizing how fonts load.
What kind of errors are likely to avoid with such testing? Let me show you a few examples:
The Audit panel can analyze a page as it loads. Then provides suggestions and optimizations for decreasing page load time and increase perceived (and real) responsiveness.
The Elements panel allows you to see everything in one DOM tree, and helps inspection and on-the-fly editing of DOM elements. It is very useful option for those, who automate their testing.
But you’ve been probably heard about this one:)
And this is a great functionality! How to test the app that must work in different locations and presents a map for you – teleport wasn’t invented yet! There is an option in DevTools that allows you to mimic location. The option is a bit hidden:
- Open Dev Tools
- Click action bar on the bottom right of the screen
- Select More Tools
- Click Sensors
Now you are able to provide a website/application with your desired geo-coordinates and pretend you are there. Remember about reloading the page with every coordinate change.
There is more – all you need is to explore the options.
Have fun with DevTools. In case of any questions – stalk me on Twitter.