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
0a4eecd4
Kaydet (Commit)
0a4eecd4
authored
Eyl 29, 2016
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make use of the new event for closed dialogs
Change-Id: I59102fda8390d9594999ceaa45105e38ecbc970e
üst
814266e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
test.py
uitest/uitest/test.py
+17
-0
No files found.
uitest/uitest/test.py
Dosyayı görüntüle @
0a4eecd4
...
...
@@ -17,6 +17,11 @@ class DialogNotExecutedException(Exception):
def
__str__
(
self
):
return
"Dialog not executed for: "
+
self
.
command
class
DialogNotClosedException
(
Exception
):
def
__str__
(
self
):
return
"Dialog was not closed"
class
UITest
(
object
):
def
__init__
(
self
,
xUITest
,
xContext
):
...
...
@@ -105,6 +110,18 @@ class UITest(object):
# report a failure here
def
close_dialog_through_button
(
self
,
button
):
with
EventListener
(
self
.
_xContext
,
"DialogClosed"
)
as
event
:
button
.
executeAction
(
"CLICK"
,
tuple
())
time_
=
0
while
time_
<
30
:
if
event
.
executed
:
time
.
sleep
(
DEFAULT_SLEEP
)
return
time_
+=
DEFAULT_SLEEP
time
.
sleep
(
DEFAULT_SLEEP
)
raise
DialogNotClosedException
()
def
close_doc
(
self
):
with
EventListener
(
self
.
_xContext
,
[
"DialogExecute"
,
"OnViewClosed"
]
)
as
event
:
self
.
_xUITest
.
executeCommand
(
".uno:CloseDoc"
)
...
...
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