GSoC work report - Week 7
During the 7th week, I sent 3 patches.
1) Gerrit change #56776
This change adds more features to the log interpreter. UNO commands, closing dialogs through buttons, sending UNO commands to open dialogs via keycode is now supported.
2) Gerrit change #56777
This change makes command-line argument parsing of interpreter more standard.
3) Gerrit change #56789
This change adds support for starting any of the 6 apps of LibreOffice through the create_doc_in_start_center() function.
Let's also have a look at a log file and the generated test file.
Log File -
1) Gerrit change #56776
This change adds more features to the log interpreter. UNO commands, closing dialogs through buttons, sending UNO commands to open dialogs via keycode is now supported.
2) Gerrit change #56777
This change makes command-line argument parsing of interpreter more standard.
3) Gerrit change #56789
This change adds support for starting any of the 6 apps of LibreOffice through the create_doc_in_start_center() function.
Let's also have a look at a log file and the generated test file.
Log File -
ButtonUIObject Action:CLICK Id:writer_all Parent: CommandSent Name:.uno:FontDialog ModalDialogExecuted Id:CharacterPropertiesDialog RadioButtonUIObject Action:CLICK Id:90deg Parent:CharacterPropertiesDialog ListBoxUIObject Action:SELECT Id:linestylelb Parent:CharacterPropertiesDialog {"POS": "6"} ButtonUIObject Action:CLICK Id:ok Parent:CharacterPropertiesDialog DialogClosed
Test File -
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from uitest.framework import UITestCase import importlib class TestClass(UITestCase): def test_function(self): MainDoc = self.ui_test.create_doc_in_start_center("writer") MainWindow = self.xUITest.getTopFocusWindow() self.ui_test.execute_dialog_through_command(".uno:FontDialog") CharacterPropertiesDialog = self.xUITest.getTopFocusWindow() 90deg = CharacterPropertiesDialog.getChild("90deg") 90deg.executeAction("CLICK",tuple()) linestylelb = CharacterPropertiesDialog.getChild("linestylelb") linestylelb.executeAction("SELECT", mkPropertyValues({"POS": "6"})) ok = CharacterPropertiesDialog.getChild("ok") self.ui_test.close_dialog_through_button(ok) |
Beautiful past. My company knows about Telford and Wrekin. If you want to know about telford and wrekin then please contact with my company.
ReplyDeleteThanks.