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
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,688
Issues
1,688
List
Boards
Labels
Service Desk
Milestones
Merge Requests
84
Merge Requests
84
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
1918d15a
Commit
1918d15a
authored
Nov 18, 2017
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/functional: extract 'external_test_imgt-igblast' from 'test_multilocus'
See
#2712
parent
a4d71986
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
115 additions
and
91 deletions
+115
-91
browser/test/functional/external_test_imgt-igblast.rb
browser/test/functional/external_test_imgt-igblast.rb
+115
-0
browser/test/functional/test_multilocus.rb
browser/test/functional/test_multilocus.rb
+0
-91
No files found.
browser/test/functional/external_test_imgt-igblast.rb
0 → 100644
View file @
1918d15a
# coding: utf-8
load
'vidjil_browser.rb'
load
'browser_test.rb'
#browser test suite
class
ExternalTest
<
BrowserTest
def
setup
super
if
not
defined?
$b
set_browser
(
"/doc/analysis-example.vidjil"
)
end
end
def
after_tests
end
def
test_10_imgt
begin
$b
.
clone_in_scatterplot
(
'25'
).
wait_until_present
$b
.
clone_in_scatterplot
(
'25'
).
click
$b
.
span
(
:id
=>
"toIMGT"
).
click
assert
(
$b
.
window
(
:title
=>
"IMGT/V-QUEST"
).
exists?
)
,
">> fail opening IMGT "
$b
.
window
(
:title
=>
"IMGT/V-QUEST"
).
use
do
assert
(
$b
.
text
.
include?
"Number of analysed sequences: 1"
),
">> fail IMGT analysis"
assert
(
$b
.
text
.
include?
"Homsap TRBV28*01"
),
">> IMGT expected V not found"
assert
(
$b
.
text
.
include?
"Homsap TRBJ2-5*01"
),
">> IMGT expected J not found"
end
$b
.
window
(
:title
=>
"analysis-example"
).
use
$b
.
window
(
:title
=>
"IMGT/V-QUEST"
).
close
$b
.
clone_in_scatterplot
(
'26'
).
click
$b
.
span
(
:id
=>
"toIMGT"
).
click
assert
(
$b
.
window
(
:title
=>
"IMGT/V-QUEST"
).
exists?
)
,
">> fail opening second IMGT "
$b
.
window
(
:title
=>
"IMGT/V-QUEST"
).
use
do
assert
(
$b
.
text
.
include?
"Number of analysed sequences: 1"
),
">> fail IMGT analysis"
assert
(
$b
.
text
.
include?
"Homsap IGHV3-9*01"
),
">> IMGT expected V not found"
assert
(
$b
.
text
.
include?
"Homsap IGHJ6*02"
),
">> IMGT expected J not found"
end
$b
.
window
(
:title
=>
"analysis-example"
).
use
end
end
def
test_10bis_imgt_post
begin
$b
.
clone_in_scatterplot
(
'25'
).
click
$b
.
span
(
:id
=>
"toIMGTSeg"
).
click
$b
.
segmenter_checkbox_imgt_vdj
.
wait_until_present
clone_info
=
$b
.
clone_info_segmenter
(
'25'
)
productive_title
=
clone_info
[
:axis
].
element
(
:class
=>
'productivity-IMGT'
).
title
assert
(
productive_title
.
include?
'productivity'
),
"IMGT should tell us the productivity of the sequence"
clone_segmenter
=
$b
.
clone_in_segmenter
(
'25'
)
$b
.
segmenter_checkbox_imgt_vdj
.
click
highlights
=
clone_segmenter
.
spans
(
:class
=>
'highlight_border'
)
assert
(
highlights
.
size
>=
2
&&
highlights
.
size
<=
3
),
"We should have the V(D)J genes highlighted, we had %d highlights"
%
highlights
.
size
for
h
in
highlights
assert
(
h
.
style
(
'width'
).
to_i
>=
100
),
"Highlights should have a reasonable width, found to be %s"
%
h
.
style
(
'width'
)
end
Watir
::
Wait
.
until
(
timeout
=
10
)
{
clone_info
[
:identity
].
span
.
exists?
}
clone_info
[
:identity
].
element
(
:text
=>
"NaN%"
).
wait_while_present
assert
((
clone_info
[
:identity
].
text
=~
/^[0-9\.]+%$/
)
==
0
),
"We should have identity rate (found: %s)"
%
clone_info
[
:identity
].
text
$b
.
unselect
end
end
def
test_11_igBlast
begin
$b
.
clone_in_scatterplot
(
'25'
).
wait_until_present
$b
.
clone_in_scatterplot
(
'25'
).
click
$b
.
span
(
:id
=>
"toIgBlast"
).
click
assert
(
$b
.
window
(
:title
=>
"IgBLAST Search Results"
).
exists?
)
,
">> fail opening igblast "
$b
.
window
(
:title
=>
"IgBLAST Search Results"
).
use
do
assert
(
$b
.
text
.
include?
"Length=180"
),
">> igblast: was not launched on the correct sequence"
assert
(
$b
.
text
.
include?
"TRBV28*01"
),
">> igblast: expected V not found"
assert
(
$b
.
text
.
include?
"TRBJ2-5*01"
),
">> igblast: expected Js not found"
end
$b
.
window
(
:title
=>
"IgBLAST Search Results"
).
close
$b
.
window
(
:title
=>
"analysis-example"
).
use
$b
.
clone_in_scatterplot
(
'26'
).
click
$b
.
span
(
:id
=>
'toIgBlast'
).
click
assert
(
$b
.
window
(
:title
=>
"IgBLAST Search Results"
).
exists?
)
,
">> fail opening second igblast "
$b
.
window
(
:title
=>
"IgBLAST Search Results"
).
use
do
assert
(
$b
.
text
.
include?
"Length=318"
),
">> igblast: was not launched on the correct sequence"
assert
(
$b
.
text
.
include?
"IGHV3-9*01"
),
">> igblast: expected V not found"
assert
(
$b
.
text
.
include?
"IGHJ6*02"
),
">> igblast: expected Js not found"
end
$b
.
window
(
:title
=>
"analysis-example"
).
use
end
end
# Not really a test
def
test_zz_close
close_everything
end
end
browser/test/functional/test_multilocus.rb
View file @
1918d15a
...
...
@@ -182,97 +182,6 @@ class TestMultilocus < BrowserTest
assert
(
$b
.
preset_selector
.
selected?
"[2] V/N length"
),
">> preset selector not properly changed"
end
def
test_10_imgt
begin
$b
.
clone_in_scatterplot
(
'25'
).
wait_until_present
$b
.
clone_in_scatterplot
(
'25'
).
click
$b
.
span
(
:id
=>
"toIMGT"
).
click
assert
(
$b
.
window
(
:title
=>
"IMGT/V-QUEST"
).
exists?
)
,
">> fail opening IMGT "
$b
.
window
(
:title
=>
"IMGT/V-QUEST"
).
use
do
assert
(
$b
.
text
.
include?
"Number of analysed sequences: 1"
),
">> fail IMGT analysis"
assert
(
$b
.
text
.
include?
"Homsap TRBV28*01"
),
">> IMGT expected V not found"
assert
(
$b
.
text
.
include?
"Homsap TRBJ2-5*01"
),
">> IMGT expected J not found"
end
$b
.
window
(
:title
=>
"analysis-example"
).
use
$b
.
window
(
:title
=>
"IMGT/V-QUEST"
).
close
$b
.
clone_in_scatterplot
(
'26'
).
click
$b
.
span
(
:id
=>
"toIMGT"
).
click
assert
(
$b
.
window
(
:title
=>
"IMGT/V-QUEST"
).
exists?
)
,
">> fail opening second IMGT "
$b
.
window
(
:title
=>
"IMGT/V-QUEST"
).
use
do
assert
(
$b
.
text
.
include?
"Number of analysed sequences: 1"
),
">> fail IMGT analysis"
assert
(
$b
.
text
.
include?
"Homsap IGHV3-9*01"
),
">> IMGT expected V not found"
assert
(
$b
.
text
.
include?
"Homsap IGHJ6*02"
),
">> IMGT expected J not found"
end
$b
.
window
(
:title
=>
"analysis-example"
).
use
end
end
def
test_10bis_imgt_post
begin
$b
.
clone_in_scatterplot
(
'25'
).
click
$b
.
span
(
:id
=>
"toIMGTSeg"
).
click
$b
.
segmenter_checkbox_imgt_vdj
.
wait_until_present
clone_info
=
$b
.
clone_info_segmenter
(
'25'
)
productive_title
=
clone_info
[
:axis
].
element
(
:class
=>
'productivity-IMGT'
).
title
assert
(
productive_title
.
include?
'productivity'
),
"IMGT should tell us the productivity of the sequence"
clone_segmenter
=
$b
.
clone_in_segmenter
(
'25'
)
$b
.
segmenter_checkbox_imgt_vdj
.
click
highlights
=
clone_segmenter
.
spans
(
:class
=>
'highlight_border'
)
assert
(
highlights
.
size
>=
2
&&
highlights
.
size
<=
3
),
"We should have the V(D)J genes highlighted, we had %d highlights"
%
highlights
.
size
for
h
in
highlights
assert
(
h
.
style
(
'width'
).
to_i
>=
100
),
"Highlights should have a reasonable width, found to be %s"
%
h
.
style
(
'width'
)
end
Watir
::
Wait
.
until
(
timeout
=
10
)
{
clone_info
[
:identity
].
span
.
exists?
}
clone_info
[
:identity
].
element
(
:text
=>
"NaN%"
).
wait_while_present
assert
((
clone_info
[
:identity
].
text
=~
/^[0-9\.]+%$/
)
==
0
),
"We should have identity rate (found: %s)"
%
clone_info
[
:identity
].
text
$b
.
unselect
end
end
def
test_11_igBlast
begin
$b
.
clone_in_scatterplot
(
'25'
).
wait_until_present
$b
.
clone_in_scatterplot
(
'25'
).
click
$b
.
span
(
:id
=>
"toIgBlast"
).
click
assert
(
$b
.
window
(
:title
=>
"IgBLAST Search Results"
).
exists?
)
,
">> fail opening igblast "
$b
.
window
(
:title
=>
"IgBLAST Search Results"
).
use
do
assert
(
$b
.
text
.
include?
"Length=180"
),
">> igblast: was not launched on the correct sequence"
assert
(
$b
.
text
.
include?
"TRBV28*01"
),
">> igblast: expected V not found"
assert
(
$b
.
text
.
include?
"TRBJ2-5*01"
),
">> igblast: expected Js not found"
end
$b
.
window
(
:title
=>
"IgBLAST Search Results"
).
close
$b
.
window
(
:title
=>
"analysis-example"
).
use
$b
.
clone_in_scatterplot
(
'26'
).
click
$b
.
span
(
:id
=>
'toIgBlast'
).
click
assert
(
$b
.
window
(
:title
=>
"IgBLAST Search Results"
).
exists?
)
,
">> fail opening second igblast "
$b
.
window
(
:title
=>
"IgBLAST Search Results"
).
use
do
assert
(
$b
.
text
.
include?
"Length=318"
),
">> igblast: was not launched on the correct sequence"
assert
(
$b
.
text
.
include?
"IGHV3-9*01"
),
">> igblast: expected V not found"
assert
(
$b
.
text
.
include?
"IGHJ6*02"
),
">> igblast: expected Js not found"
end
$b
.
window
(
:title
=>
"analysis-example"
).
use
end
end
def
test_12_tag
begin
$b
.
clone_info
(
'25'
)[
:star
].
click
...
...
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