Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Mobile Test Automation

You're reading from   Mastering Mobile Test Automation Master the full range of mobile automation and testing techniques to develop customized mobile automation solutions

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781782175421
Length 274 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (10) Chapters Close

Preface 1. Ensuring Five-star Rating in the MarketPlace 2. Designing Mobile Automation Frameworks FREE CHAPTER 3. User Agent – automating Mobile Applications with Browsers 4. Emulators and Simulators – the Automation of Emulated Devices 5. Automating Physical Devices 6. Automating on Cloud 7. Optimizing Test Strategy and Estimation 8. Delivering Customer Delight Index

User agent simulation for mobile

To overcome the problem of user agent sniffing, new browsers were designed to allow for spoofing or simulation of the user agent as a means of bypassing discriminatory server rules. This capability has since then persisted and all modern browsers today have the feature of user agent string simulation as an inbuilt capability. So, using this feature to our advantage, we can simulate the user agent of a mobile device while accessing any mobile web application through any browser. On sniffing the user agent, the server would take the request to be originating from a mobile device and hence would respond with the mobile view. Thus, we would be able to get the mobile web application interface from a desktop browser. The following diagram depicts this process:

User agent simulation for mobile

User agent simulation through desktop browsers

User agent plugin programs

Generally, all mobile browsers come with simple add-ons that enable the overriding of the user agent string. In the following table...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime