Scraping Mobile Site ApplicationsVideo Recording Feature using Python Appium

Video Recording Feature using Python Appium

You can record a video for a test scenario using this feature. To use this feature, you must enable the option in the Application Settings File. For example, in Mobile App Automation using Python Appium, when a test fails, the video recording feature provides a view of the test execution. This allows testers to observe the events that occurred during the test and helps identify the cause of the failure.

Configure Application Settings File

Perform the following:

  1. Scripts generated follow an organized folder structure. Search for and locate the ApplicationSettings.xml file. Copy and paste the file to the location where the POM and Report.exe files are located.
  2. In the ApplicationSettings.xml file, update the 'To Email', 'From Email', and 'From Password' parameters with the appropriate details.

Note that the preceding details must be added manually. You can find the ApplicationSettings.xml file at - ScriptGeneration_202310311222 (2).zip\AlgoAFScript_202310311222\src\test\java.

Applications.XML with ToEmail, FromEmail and FromPassword fields highlighted in red boxes
  1. Set the Video Recording option to True.
  2. Save the changes.

Viewing the recorded scenario

  1. In the algoQA report folder, navigate to the generated report.
  2. You will see the video recorded for the test scenario in the algoQA folder structure, as shown below. You can access this video in any compatible media player.
    Zip archive contents with scenario_verify_cart mp4 recording file highlighted

A sample scenario is as shown:

Mobile browser screenshot of Tricentis Demo Web Shop page with Categories menu overlay open