Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PDA Testing Tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
winfo
code-pro
PDA Testing Framework
PDA Testing Tool
Commits
c9ef1c5c
Commit
c9ef1c5c
authored
3 years ago
by
Henning Josef Moritz Werner Schmeink
Browse files
Options
Downloads
Patches
Plain Diff
bug fix
parent
82d70096
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Testgenerator/src/main/java/de/fhmuenster/masterthesis/Testgenerator/prioritization/PrioritizationService.java
+16
-18
16 additions, 18 deletions
...s/Testgenerator/prioritization/PrioritizationService.java
with
16 additions
and
18 deletions
Testgenerator/src/main/java/de/fhmuenster/masterthesis/Testgenerator/prioritization/PrioritizationService.java
+
16
−
18
View file @
c9ef1c5c
...
...
@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
public
class
PrioritizationService
{
public
static
final
String
file1
=
"D:\\VSProjects\\fe-pda-testing-tool\\OnlineSchuhDemo\\src\\
main\\resources
\\Testcollection
1
.bpmn-testgen"
;
public
static
final
String
file1
=
"D:\\VSProjects\\fe-pda-testing-tool\\OnlineSchuhDemo\\src\\
test\\java\\de\\sample\\onlineschuhdemo
\\Testcollection.bpmn-testgen"
;
/**
* TESTING STAGE
...
...
@@ -67,7 +67,7 @@ public class PrioritizationService {
List
<
Flow
>
flowList
=
new
ArrayList
<
Flow
>();
String
flowName
;
String
flowName
=
""
;
List
<
String
>
withElements
=
new
ArrayList
<>();
List
<
String
>
withoutElements
=
new
ArrayList
<>();
...
...
@@ -77,7 +77,7 @@ public class PrioritizationService {
while
(
line
!=
null
)
{
line
=
bufferedReader
.
readLine
();
if
(
line
.
startsWith
(
"Flow"
))
{
if
(
line
.
startsWith
(
"Flow
"
))
{
flowName
=
line
;
...
...
@@ -88,12 +88,11 @@ public class PrioritizationService {
withElements
.
add
(
line
);
else
if
(
line
.
contains
(
"without elements"
))
withoutElements
.
add
(
line
);
// Hier wird das Flowobjekt erzeugt
Flow
flow
=
new
Flow
(
flowName
,
withElements
,
withoutElements
);
flowList
.
add
(
flow
);
}
}
// Hier wird das Flowobjekt erzeugt
Flow
flow
=
new
Flow
(
flowName
,
withElements
,
withoutElements
);
flowList
.
add
(
flow
);
}
}
}
...
...
@@ -114,7 +113,7 @@ public class PrioritizationService {
public
List
<
Test
>
createTestList
(
BufferedReader
bufferedReader
)
{
List
<
Test
>
testList
=
new
ArrayList
<
Test
>();
String
testName
;
String
testName
=
""
;
List
<
String
>
testVariables
=
new
ArrayList
<>();
List
<
String
>
testCheck
=
new
ArrayList
<>();
List
<
String
>
testMocks
=
new
ArrayList
<>();
...
...
@@ -125,7 +124,7 @@ public class PrioritizationService {
while
(
line
!=
null
)
{
line
=
bufferedReader
.
readLine
();
if
(
line
.
startsWith
(
"Test"
))
{
if
(
line
.
startsWith
(
"Test
"
))
{
testName
=
line
;
...
...
@@ -138,13 +137,12 @@ public class PrioritizationService {
testCheck
.
add
(
line
);
else
if
(
line
.
contains
(
"with mocks"
))
testMocks
.
add
(
line
);
// Hier wird das Testobjekt erzeugt
Test
test
=
new
Test
(
testName
,
testVariables
,
testCheck
,
testMocks
);
testList
.
add
(
test
);
}
}
}
// Hier wird das Testobjekt erzeugt
Test
test
=
new
Test
(
testName
,
testVariables
,
testCheck
,
testMocks
);
testList
.
add
(
test
);
}
}
}
catch
(
Exception
ex
)
{
...
...
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