WEBVTT 00:00.900 --> 00:04.001 Hello everyone, this is me, Ahmed El-Shreif. 00:04.010 --> 00:08.100 I was a Google Summer of Code student with LibreOffice last year. 00:08.100 --> 00:13.466 This video is about how to use a feature that I was working on with LibreOffice 00:13.466 --> 00:17.600 It's about open LibreOffice and open the logger, 00:17.600 --> 00:20.600 and log every actions that you did, 00:20.600 --> 00:29.600 and just convert these logs to UITestCase that you can run in any time and replay all your actions. 00:29.600 --> 00:32.600 You can see all these details here on the wiki page. 00:32.600 --> 00:37.200 OK, I will here explain how you can do this. 00:37.200 --> 00:44.500 So, you need just to run LibreOffice, with enabling this flag, 00:44.500 --> 00:49.500 and give the log file that you want to log all your actions in it. 00:49.500 --> 00:55.130 So, I will open LibreOffice. I will choose to open Calc for example. 00:55.130 --> 01:02.000 And I select this cell, and type "Hello". Select another cell, type "World". 01:02.000 --> 01:12.666 OK. I may "dosomething". And we may just need to merge some cells together. 01:12.666 --> 01:21.055 OK. We can just copy this cell, and paste it here. 01:21.055 --> 01:27.055 We can open the "Format" for any cell. 01:27.055 --> 01:31.055 We can play with any dialog, and we can change everything in the dialog. 01:31.055 --> 01:35.555 OK, I will not need to do. Just enough for now. 01:35.555 --> 01:38.555 So, don't save. 01:38.555 --> 01:42.555 Then you will need to see the logs and convert it. 01:42.555 --> 01:51.066 So you can go to this path: uitest/ui_logger_dsl. OK. 01:51.066 --> 02:01.200 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. 02:01.200 --> 02:09.200 So, we need to run this Python script. 02:09.200 --> 02:15.100 With "python", then just the script name, and we give the path of the log file, 02:15.200 --> 02:20.200 and a file-path which would be related to the generated TestCase. 02:20.200 --> 02:27.200 So I make "here.py" as the TestCase. 02:27.200 --> 02:35.800 OK, I can just open it so we can view it here on the screen. "gedit", OK. 02:35.800 --> 02:43.700 Here is the logs. So you just can see that I started calc, and selected sheet 0, 02:43.700 --> 02:48.800 and selected this cell, and just typed h-e-l-l-o which is "Hello". 02:48.800 --> 02:54.500 and all the actions we get: the merge, and the open of the Formatting Cells Dialog, 02:54.500 --> 03:00.500 All the actions, and we convert here to a TestCase that is ready to run here. 03:00.500 --> 03:03.500 And we can run our test case. 03:03.500 --> 03:09.500 You can use this simple script from the WIKI page to run any test case. 03:09.500 --> 03:17.500 It will make it simpler to you. I copied this script here. 03:17.500 --> 03:23.100 We can just... OK. 03:23.100 --> 03:26.600 And I need to give this a file that I want it to run. 03:26.600 --> 03:39.100 OK... You can see here I don't touch anything in my laptop and it simulates all the actions that I did. 03:39.100 --> 03:45.460 We may want to make it "sleep" more so that we can see the actions clearly. 03:45.460 --> 03:48.160 Not so fast like what we did here. 03:48.160 --> 03:59.060 You can just open the config of the UI test framework, and increase the time that it takes for sleeping between different actions 03:59.060 --> 04:05.900 to be able to see it more and debug more in your TestCase, and the related. 04:05.900 --> 04:09.060 This is how you can use this project. 04:09.060 --> 04:23.360 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. 04:23.360 --> 04:29.360 And I hope so at the end of the project we don't have any items here 04:29.360 --> 04:32.360 And, that's it, thanks everyone for watching.