Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

1
How to records your selenium script video in eclipse?

Open 1 Answers 42 Views
1 1
How to records your selenium script  video in eclipse?
4Comments
commented Jan 29 by Harsha
edited Jan 30 by SunilBhaskar
Bharath,

Do you want to record the screen at runtime?
commented Jan 29 by SunilBhaskar (443 points)
Kindly register to comment Harsha. This way, we can keep the question and answer site more organised.
commented Jan 31 by bharatvars4567 (650 points)
moved 6 days ago by SunilBhaskar
I have used ATU Test Recorder earlier in our selenium script, i have asking it is any other recorder to check the script.Please let me know
commented Jan 31 by bharatvars4567 (650 points)
Not getting your point

1 Answer

1
1
You can use the “Monte Media Library” java based library developed by Werner Randelshofer to record the selenium webdriver execution video, Following are the steps to use this -
1- Download “MonteScreenRecorder.jar” from link http://www.randelshofer.ch/monte/
2- Add this jar file to webdriver eclipse project.
3- Jar file contain “ScreenRecorder” class, create the class object like -
public ScreenRecorder(java.awt.GraphicsConfiguration cfg,
                      java.awt.Rectangle captureArea,
                      Format fileFormat,
                      Format screenFormat,
                      Format mouseFormat,
                      Format audioFormat,
                      java.io.File movieFolder)
               throws java.io.IOException,
                      java.awt.AWTException

    Creates a screen recorder.

    Parameters:
        cfg - Graphics configuration of the capture screen.
        captureArea - Defines the area of the screen that shall be captured.
        fileFormat - The file format "AVI" or "QuickTime".
        screenFormat - The video format for screen capture.
        mouseFormat - The video format for mouse capture. The EncodingKey must be ENCODING_BLACK_CURSOR or ENCODING_WHITE_CURSOR. The SampleRateKey can be independent from the screenFormat. Specify null if you don't want to capture the mouse cursor.
        audioFormat - The audio format for audio capture. Specify null if you don't want audio capture.
        movieFolder - Where to store the movie
    Throws:
        java.io.IOException
        java.awt.AWTException

4- call “screenRecorder.start()” methods at starting of your test scripts and “screenRecorder.stop()” at the end of execution.
5- After execution of test script, the video file is generated under “Video” folder of current user folder in   Windows machine and “Movies” folder on Mac machine.
answered 4 days ago by Mayank Gupta (31 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors

...