Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LINAGORA
L
LGS
Labs
hublot
Commits
283ae9d5
Commit
283ae9d5
authored
Nov 07, 2017
by
Yoann HOUPERT
Browse files
Add comment for robot initialisation
Reduce eslint bloc size
parent
0a1475c4
Pipeline
#4900
passed with stage
in 37 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
client/robot/robot.js
client/robot/robot.js
+1
-0
lib/runner.js
lib/runner.js
+7
-3
No files found.
client/robot/robot.js
View file @
283ae9d5
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
/* exported robot */
/* exported robot */
robot
=
{
robot
=
{
// The variable 'room' and 'clientConfig' will be initialized at the call of start function
room
:
''
,
room
:
''
,
clientConfig
:
{},
clientConfig
:
{},
previousReco
:
[],
previousReco
:
[],
...
...
lib/runner.js
View file @
283ae9d5
...
@@ -18,8 +18,6 @@
...
@@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
/* global robot:true robotController */
const
webdriverio
=
require
(
'
webdriverio
'
);
const
webdriverio
=
require
(
'
webdriverio
'
);
// Utility function to resolve a list of promise-based function calls
// Utility function to resolve a list of promise-based function calls
...
@@ -44,11 +42,17 @@ module.exports = config => ({
...
@@ -44,11 +42,17 @@ module.exports = config => ({
.
then
(()
=>
resolveSequentially
(
f
=>
client
.
execute
(
f
,
room
,
clientConfig
),
.
then
(()
=>
resolveSequentially
(
f
=>
client
.
execute
(
f
,
room
,
clientConfig
),
controllerFilesList
))
controllerFilesList
))
.
then
(()
=>
console
.
log
(
'
runner: modules resolved
'
))
.
then
(()
=>
console
.
log
(
'
runner: modules resolved
'
))
.
then
(()
=>
client
.
execute
(
clientConfig
=>
robotController
.
external
.
load
(
clientConfig
),
clientConfig
))
.
then
(()
=>
client
.
execute
(
clientConfig
=>
/* eslint-disable no-undef */
robotController
.
external
.
load
(
clientConfig
),
clientConfig
)
/* eslint-enable */
)
.
then
(()
=>
console
.
log
(
'
runner: external loaded
'
))
.
then
(()
=>
console
.
log
(
'
runner: external loaded
'
))
.
then
(()
=>
client
.
execute
((
room
,
clientConfig
)
=>
{
.
then
(()
=>
client
.
execute
((
room
,
clientConfig
)
=>
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
/* eslint-disable no-undef */
robot
.
start
(
room
,
clientConfig
);
robot
.
start
(
room
,
clientConfig
);
/* eslint-enable */
},
500
);
},
500
);
},
room
,
clientConfig
))
},
room
,
clientConfig
))
.
then
(()
=>
console
.
log
(
'
runner: robot started
'
))
.
then
(()
=>
console
.
log
(
'
runner: robot started
'
))
...
...
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