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
9b8fb077
Kaydet (Commit)
9b8fb077
authored
Ara 22, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java: inline some test properties
Change-Id: I8be2ee13652ed7223e41765811db577ecc1c85d6
üst
a7d12921
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
65 deletions
+8
-65
ListSelection.java
forms/qa/integration/forms/ListSelection.java
+6
-20
ListSelection.props
forms/qa/integration/forms/ListSelection.props
+0
-2
CfgParser.java
qadevOOo/runner/helper/CfgParser.java
+2
-43
No files found.
forms/qa/integration/forms/ListSelection.java
Dosyayı görüntüle @
9b8fb077
...
@@ -63,28 +63,14 @@ public class ListSelection extends integration.forms.TestCase
...
@@ -63,28 +63,14 @@ public class ListSelection extends integration.forms.TestCase
/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
public
void
checkUserListSelection
()
throws
com
.
sun
.
star
.
uno
.
Exception
,
java
.
lang
.
Exception
public
void
checkUserListSelection
()
throws
com
.
sun
.
star
.
uno
.
Exception
,
java
.
lang
.
Exception
{
{
boolean
interactiveTest
=
param
.
getBool
(
"Interactive"
);
int
runs
=
5
;
for
(
int
i
=
0
;
i
<
runs
;
++
i
)
if
(
interactiveTest
)
{
{
log
.
println
(
"Round "
+
(
i
+
1
)
+
" of "
+
runs
);
prepareDocument
();
prepareDocument
();
waitForUserInput
();
impl_clickListBox
();
closeDocumentByUI
();
synchronized
(
this
)
{
this
.
wait
(
1000
);
}
}
closeDocument
();
else
{
int
runs
=
param
.
getInt
(
"Runs"
);
if
(
runs
==
0
)
runs
=
10
;
for
(
int
i
=
0
;
i
<
runs
;
++
i
)
{
log
.
println
(
"Round "
+
(
i
+
1
)
+
" of "
+
runs
);
prepareDocument
();
impl_clickListBox
();
synchronized
(
this
)
{
this
.
wait
(
1000
);
}
closeDocument
();
}
}
}
}
}
...
...
forms/qa/integration/forms/ListSelection.props
Dosyayı görüntüle @
9b8fb077
ThreadTimeOut=600000
ThreadTimeOut=600000
Interactive=false
Runs=5
qadevOOo/runner/helper/CfgParser.java
Dosyayı görüntüle @
9b8fb077
...
@@ -41,30 +41,13 @@ public class CfgParser
...
@@ -41,30 +41,13 @@ public class CfgParser
public
CfgParser
(
String
ini
)
public
CfgParser
(
String
ini
)
{
{
if
(
ini
!=
null
)
this
.
iniFile
=
ini
;
{
this
.
iniFile
=
ini
;
}
}
}
public
void
getIniParameters
(
TestParameters
param
)
public
void
getIniParameters
(
TestParameters
param
)
{
{
debug
=
param
.
getBool
(
PropertyName
.
DEBUG_IS_ACTIVE
);
debug
=
param
.
getBool
(
PropertyName
.
DEBUG_IS_ACTIVE
);
Properties
cfg
=
null
;
Properties
cfg
=
getProperties
(
iniFile
);
if
(
iniFile
.
length
()
==
0
)
{
//no iniFile given, search one in the users home directory
cfg
=
getProperties
(
getDefaultFileName
(
true
));
//try to search the user dir if no iniFile could be found yet
if
(
cfg
==
null
)
{
cfg
=
getProperties
(
getDefaultFileName
(
false
));
}
}
else
{
cfg
=
getProperties
(
iniFile
);
}
if
(
cfg
!=
null
)
if
(
cfg
!=
null
)
{
{
...
@@ -161,28 +144,4 @@ public class CfgParser
...
@@ -161,28 +144,4 @@ public class CfgParser
return
prop
;
return
prop
;
}
}
private
String
getDefaultFileName
(
boolean
home
)
{
String
fileSeparator
=
System
.
getProperty
(
"file.separator"
);
String
path
=
""
;
if
(
home
)
{
//look inside the home directory
path
=
System
.
getProperty
(
"user.home"
);
}
else
{
path
=
System
.
getProperty
(
"user.dir"
);
}
if
(
fileSeparator
.
equals
(
"/"
))
{
//suppose I'm on Unix-platform
return
path
+
fileSeparator
+
".runner.props"
;
}
else
{
//suppose I'm on Windows
return
path
+
fileSeparator
+
"runner.props"
;
}
}
}
}
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