Dec 22 2009 01:59:26 AM Posted By : Raghavan
Comments (0)

In any automation certain errors might happen due to environmental issues. Such issues are very hard to debug as there may not be a trace available to handle such errors.

In this blog i will be introducing few environmental problems with appropriate solution available in QEngine,

  1. Browser Cache:
    While loading a requested page browser may load the page from the browser cache instead of requesting it from the server. This may cause any functionality breakage, due to which the test cases may result in failure. 

    In the above case, if the requested page is got from the server, the above failure mat not have happened. 

    Solution:
    In QEngine there is a setting available to clear cache before starting the playback.
    To configure the above setting goto, Suite->Settings->Replay Settings and enable the checkbox for Clear browser cache before starting the playback.

    With the above settings we can minimize the error occurring due to browser cache.

  2. Cookies:
    Cookies are the state identifiers sent with the request to the server from the browser. Browsers will store the cookies of the previous visit to use it next time when the server is requested. If there is any cookie of the expired server session present in the browser, then it will cause the wrong page to load in the browser. This may cause any functionality error, thus the test case will result in failure.

    In the above case, if the cookies were not present for the server domain, then these problem may not happen.

    Solution:
    In QEngine there is a setting available to clear cookies for the configured domain from the browser.
    To configure the above setting goto,Suite->Settings->Replay Settings and enable the checkbox for Clear browser cookies for and configure the server domain name in the textbox.

    With the above setting the we can minimize the error occuring due to cookies.

Thus few environment issues can be minimized using QEngine.

Raghavan

No one has commented yet! Be the first one to comment!

Post Comment