Is it better to use HTTP Proxy Recorder or Selenium for Recording a Website in DevTest?

book

Article ID: 38109

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder) CA Service Virtualization (DevTest / LISA / VSE / Application Test)

Issue/Introduction

Question: 

Is it better to use HTTP Proxy Recorder or Selenium for Recording a Website in DevTest?

Environment:  

All supported Windows DevTest platforms

Answer: 

The HTTP proxy recorder in Application Test will only record what is going over the wire between a web browser and a server.

If there is any rich UI frameworks involved in the web application, you will not be able to record and play back since the HTTP Proxy Recorder is not a browser simulator.

If you are looking doing a browser simulation recording (as in driving a UI) you need to use Selenium to accomplish the recording.

Additional Information:

Below is some documentation on using Selenium:

There has been a change to Selenium Builder since this documentation, Selenium Builder 3.0.5 is what now comes with Firefox. This change was just recent.

You cannot run locally anymore from Selenium Builder, you need to run from Selenium Server. This is just a jar file that gets downloaded and then when you execute the jar file it runs like this example:

C:\SeleniumServer>java -jar selenium-server-standalone-2.50.1.jar

10:34:56.286 INFO - Launching a standalone Selenium Server

10:34:56.537 INFO - Java: Oracle Corporation 25.71-b15

10:34:56.538 INFO - OS: Windows 7 6.1 amd64

10:34:56.572 INFO - v2.50.1, with Core v2.50.1. Built from revision d7fc91b

10:34:56.733 INFO - Driver class not found: com.opera.core.systems.OperaDriver

10:34:56.734 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered

10:34:56.741 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:

registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform VISTA

10:34:57.162 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub

10:34:57.163 INFO - Selenium Server is up and running

Once you record your website, when you play it back in Selenium Builder the information you need will be in the display like above.

Selenium Server can be gotten from: http://www.seleniumhq.org/download/

DevTest Selenium links:

https://docops.ca.com/devtest-solutions/8-2/en/reference/test-step-descriptions/selenium-integration-steps/create-and-export-a-selenium-builder-recording

https://docops.ca.com/devtest-solutions/8-2/en/reference/test-step-descriptions/selenium-integration-steps/import-a-selenium-builder-json-into-ca-application-test

 

https://docops.ca.com/devtest-solutions/8-2/en/using/using-ca-application-test/using-the-workstation-and-console-with-ca-application-test/running-test-cases-and-suites/run-a-selenium-integration-test-case

Environment

Release: LSASVR99000-8.1-LISA-Server
Component: