Hello everyone, this is me, Ahmed El-Shreif.
I was a Google Summer of Code student with LibreOffice last year.
This video is about how to use a feature that I was working on with LibreOffice
It's about open LibreOffice and open the logger,
and log every actions that you did,
and just convert these logs to UITestCase that you can run in any time and replay all your actions.
You can see all these details here on the wiki page.
OK, I will here explain how you can do this.
So, you need just to run LibreOffice, with enabling this flag,
and give the log file that you want to log all your actions in it.
So, I will open LibreOffice. I will choose to open Calc for example.
And I select this cell, and type "Hello". Select another cell, type "World".
OK. I may "dosomething". And we may just need to merge some cells together.
OK. We can just copy this cell, and paste it here.
We can open the "Format" for any cell.
We can play with any dialog, and we can change everything in the dialog.
OK, I will not need to do. Just enough for now.
So, don't save.
Then you will need to see the logs and convert it.
So you can go to this path: uitest/ui_logger_dsl. OK.
Here in this path you can find the "dsl_core.py", that is the compiler that takes the log and convert it to a TestCase.
So, we need to run this Python script.
With "python", then just the script name, and we give the path of the log file,
and a file-path which would be related to the generated TestCase.
So I make "here.py" as the TestCase.
OK, I can just open it so we can view it here on the screen. "gedit", OK.
Here is the logs. So you just can see that I started calc, and selected sheet 0,
and selected this cell, and just typed h-e-l-l-o which is "Hello".
and all the actions we get: the merge, and the open of the Formatting Cells Dialog,
All the actions, and we convert here to a TestCase that is ready to run here.
And we can run our test case.
You can use this simple script from the WIKI page to run any test case.
It will make it simpler to you. I copied this script here.
We can just... OK.
And I need to give this a file that I want it to run.
OK... You can see here I don't touch anything in my laptop and it simulates all the actions that I did.
We may want to make it "sleep" more so that we can see the actions clearly.
Not so fast like what we did here.
You can just open the config of the UI test framework, and increase the time that it takes for sleeping between different actions
to be able to see it more and debug more in your TestCase, and the related.
This is how you can use this project.
There are some UI items that are not supported yet. I suppose to work this year to do some good program to support these items.
And I hope so at the end of the project we don't have any items here
And, that's it, thanks everyone for watching.