Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs427fa20team22
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
htmoss2
cs427fa20team22
Commits
c44cdd02
Commit
c44cdd02
authored
4 years ago
by
sbobo3
Browse files
Options
Downloads
Patches
Plain Diff
Fixed Selenium tests that were failing.
parent
9475e137
No related branches found
Branches containing commit
No related tags found
2 merge requests
!7
Uc20
,
!2
UC20 Data Access Object Completed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iTrust/test/edu/ncsu/csc/itrust/selenium/CauseOfDeathTrendsReportSeleniumTest.java
+16
-8
16 additions, 8 deletions
...itrust/selenium/CauseOfDeathTrendsReportSeleniumTest.java
with
16 additions
and
8 deletions
iTrust/test/edu/ncsu/csc/itrust/selenium/CauseOfDeathTrendsReportSeleniumTest.java
+
16
−
8
View file @
c44cdd02
...
...
@@ -42,15 +42,15 @@ public class CauseOfDeathTrendsReportSeleniumTest extends iTrustSeleniumTest {
assertEquals
(
cause1
,
"Influenza"
);
assertEquals
(
code1
,
487.00
);
assertEquals
(
deaths1
,
4
);
assertEquals
(
deaths1
,
5
);
String
cause2
=
table
.
findElements
(
By
.
tagName
(
"td"
)).
get
(
3
).
getText
();
double
code2
=
Double
.
parseDouble
(
table
.
findElements
(
By
.
tagName
(
"td"
)).
get
(
4
).
getText
());
int
deaths2
=
Integer
.
parseInt
(
table
.
findElements
(
By
.
tagName
(
"td"
)).
get
(
5
).
getText
());
assertEquals
(
cause2
,
"
Diabetes with ketoacidosis
"
);
assertEquals
(
code2
,
250.1
0
);
assertEquals
(
deaths2
,
1
);
assertEquals
(
cause2
,
"
Tuberculosis of the lung
"
);
assertEquals
(
code2
,
11.4
0
);
assertEquals
(
deaths2
,
3
);
}
public
void
testViewCODTrendsReports_AllPatientsOnlyMale
()
throws
Exception
{
...
...
@@ -79,15 +79,15 @@ public class CauseOfDeathTrendsReportSeleniumTest extends iTrustSeleniumTest {
assertEquals
(
cause1
,
"Influenza"
);
assertEquals
(
code1
,
487.00
);
assertEquals
(
deaths1
,
2
);
assertEquals
(
deaths1
,
3
);
String
cause2
=
table
.
findElements
(
By
.
tagName
(
"td"
)).
get
(
3
).
getText
();
double
code2
=
Double
.
parseDouble
(
table
.
findElements
(
By
.
tagName
(
"td"
)).
get
(
4
).
getText
());
int
deaths2
=
Integer
.
parseInt
(
table
.
findElements
(
By
.
tagName
(
"td"
)).
get
(
5
).
getText
());
assertEquals
(
cause2
,
"
Diabetes with ketoacidosis
"
);
assertEquals
(
code2
,
250.1
0
);
assertEquals
(
deaths2
,
1
);
assertEquals
(
cause2
,
"
Malaria
"
);
assertEquals
(
code2
,
84.5
0
);
assertEquals
(
deaths2
,
2
);
}
public
void
testViewCODTrendsReports_AllPatientsOnlyFemale
()
throws
Exception
{
...
...
@@ -117,6 +117,14 @@ public class CauseOfDeathTrendsReportSeleniumTest extends iTrustSeleniumTest {
assertEquals
(
cause1
,
"Influenza"
);
assertEquals
(
code1
,
487.00
);
assertEquals
(
deaths1
,
2
);
String
cause2
=
table
.
findElements
(
By
.
tagName
(
"td"
)).
get
(
3
).
getText
();
double
code2
=
Double
.
parseDouble
(
table
.
findElements
(
By
.
tagName
(
"td"
)).
get
(
4
).
getText
());
int
deaths2
=
Integer
.
parseInt
(
table
.
findElements
(
By
.
tagName
(
"td"
)).
get
(
5
).
getText
());
assertEquals
(
cause2
,
"Tuberculosis of the lung"
);
assertEquals
(
code2
,
11.40
);
assertEquals
(
deaths2
,
1
);
}
public
void
testViewCODTrendsReports_MyPatientsAllGenders
()
throws
Exception
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment