Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
6da7ccfc
Kaydet (Commit)
6da7ccfc
authored
Haz 22, 2016
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
uitest: remove sleeps and prints from impress and writer parts
Change-Id: Ic4c4ba74701303df1ff38c5ed6ed7d521b369053
üst
18d64ed6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
44 deletions
+0
-44
start.py
uitest/impress_tests/start.py
+0
-28
start.py
uitest/writer_tests/start.py
+0
-16
No files found.
uitest/impress_tests/start.py
Dosyayı görüntüle @
6da7ccfc
...
...
@@ -29,16 +29,10 @@ class SimpleImpressTest(UITestCase):
self
.
ui_test
.
create_doc_in_start_center
(
"impress"
)
xImpressDoc
=
self
.
xUITest
.
getTopFocusWindow
()
print
(
get_state_as_dict
(
xImpressDoc
))
print
(
xImpressDoc
.
getChildren
())
xEditWin
=
xImpressDoc
.
getChild
(
"impress_win"
)
xEditWin
.
executeAction
(
"SET"
,
mkPropertyValues
({
"ZOOM"
:
"200"
}))
print
(
xEditWin
.
getChildren
())
time
.
sleep
(
1
)
self
.
ui_test
.
close_doc
()
def
test_select_page
(
self
):
...
...
@@ -46,20 +40,11 @@ class SimpleImpressTest(UITestCase):
self
.
ui_test
.
create_doc_in_start_center
(
"impress"
)
xImpressDoc
=
self
.
xUITest
.
getTopFocusWindow
()
print
(
get_state_as_dict
(
xImpressDoc
))
print
(
xImpressDoc
.
getChildren
())
xEditWin
=
xImpressDoc
.
getChild
(
"impress_win"
)
time
.
sleep
(
1
)
print
(
get_state_as_dict
(
xEditWin
))
xEditWin
.
executeAction
(
"GOTO"
,
mkPropertyValues
({
"PAGE"
:
"2"
}))
time
.
sleep
(
1
)
print
(
get_state_as_dict
(
xEditWin
))
self
.
ui_test
.
close_doc
()
def
test_select_text
(
self
):
...
...
@@ -67,15 +52,9 @@ class SimpleImpressTest(UITestCase):
self
.
ui_test
.
create_doc_in_start_center
(
"impress"
)
xImpressDoc
=
self
.
xUITest
.
getTopFocusWindow
()
print
(
get_state_as_dict
(
xImpressDoc
))
print
(
xImpressDoc
.
getChildren
())
xEditWin
=
xImpressDoc
.
getChild
(
"impress_win"
)
time
.
sleep
(
1
)
print
(
get_state_as_dict
(
xEditWin
))
self
.
ui_test
.
close_doc
()
def
test_select_object
(
self
):
...
...
@@ -83,19 +62,12 @@ class SimpleImpressTest(UITestCase):
self
.
ui_test
.
create_doc_in_start_center
(
"impress"
)
xImpressDoc
=
self
.
xUITest
.
getTopFocusWindow
()
print
(
get_state_as_dict
(
xImpressDoc
))
print
(
xImpressDoc
.
getChildren
())
xEditWin
=
xImpressDoc
.
getChild
(
"impress_win"
)
xEditWin
.
executeAction
(
"SELECT"
,
mkPropertyValues
({
"OBJECT"
:
"Unnamed Drawinglayer object 1"
}))
time
.
sleep
(
1
)
xEditWin
.
executeAction
(
"DESELECT"
,
tuple
())
time
.
sleep
(
1
)
print
(
get_state_as_dict
(
xEditWin
))
self
.
ui_test
.
close_doc
()
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
uitest/writer_tests/start.py
Dosyayı görüntüle @
6da7ccfc
...
...
@@ -30,15 +30,11 @@ class SimpleWriterTest(UITestCase):
self
.
ui_test
.
create_doc_in_start_center
(
"writer"
)
xWriterDoc
=
self
.
xUITest
.
getTopFocusWindow
()
print
(
xWriterDoc
.
getChildren
())
xWriterEdit
=
xWriterDoc
.
getChild
(
"writer_edit"
)
print
(
xWriterEdit
.
getState
())
xWriterEdit
.
executeAction
(
"SET"
,
mkPropertyValues
({
"ZOOM"
:
"200"
}))
time
.
sleep
(
2
)
self
.
ui_test
.
close_doc
()
def
test_type_text
(
self
):
...
...
@@ -50,8 +46,6 @@ class SimpleWriterTest(UITestCase):
xWriterEdit
.
executeAction
(
"TYPE"
,
mkPropertyValues
({
"TEXT"
:
"This is my first writer text written through the UI testing"
}))
time
.
sleep
(
2
)
self
.
ui_test
.
close_doc
()
def
test_goto_first_page
(
self
):
...
...
@@ -62,14 +56,11 @@ class SimpleWriterTest(UITestCase):
xWriterEdit
=
xWriterDoc
.
getChild
(
"writer_edit"
)
state
=
get_state_as_dict
(
xWriterEdit
)
print
(
state
)
while
state
[
"CurrentPage"
]
is
"1"
:
xWriterEdit
.
executeAction
(
"TYPE"
,
mkPropertyValues
({
"KEYCODE"
:
"RETURN"
}))
state
=
get_state_as_dict
(
xWriterEdit
)
xWriterEdit
.
executeAction
(
"GOTO"
,
mkPropertyValues
({
"PAGE"
:
"1"
}))
print
(
state
)
time
.
sleep
(
2
)
self
.
ui_test
.
close_doc
()
...
...
@@ -83,15 +74,8 @@ class SimpleWriterTest(UITestCase):
xWriterEdit
.
executeAction
(
"TYPE"
,
mkPropertyValues
({
"TEXT"
:
"This is my first writer text written through the UI testing"
}))
time
.
sleep
(
2
)
print
(
get_state_as_dict
(
xWriterEdit
))
xWriterEdit
.
executeAction
(
"SELECT"
,
mkPropertyValues
({
"START_POS"
:
"0"
,
"END_POS"
:
"4"
}))
print
(
get_state_as_dict
(
xWriterEdit
))
time
.
sleep
(
2
)
self
.
ui_test
.
close_doc
()
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment