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

Troubleshooting and best practices

The following are some industry best practices:

  • An important aspect to consider with the user agent approach is that while switching user agents, a new session of the browser should be started every time in order to ensure that cookies are cleared, and the server is able to send the response as per the new user agent string.
  • Another aspect is to periodically clear all temporary files of the browser and also to clear its cache while running automation scripts. The following is a code snippet for VB Script that can be used with tools such as UFT, which do not have inbuilt constructs for deleting browser cookies or whose inbuilt cookie deletion functions do not work properly:
    Dim objFileSystem, objWshShell, objoFolder, oFile
    'Deleting temporary folders:
    Set objFileSystem = CreateObject("Scripting.FileSystemObject")
    'Create Window Shell object
    Set objWshShell = CreateObject("WScript.Shell")
    'get Folderpath under which file present...
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