-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_application_engineering.py
More file actions
44 lines (30 loc) · 1.09 KB
/
test_application_engineering.py
File metadata and controls
44 lines (30 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from core.configurators.WorkspaceConfigurator import WorkspaceConfigurator
from core.readers.MigrationModelReader import MigrationModelReader
import time
def main():
print()
print("########################################")
print("You're execute TEST APPLICATION ENGINEERING")
print("########################################")
print()
start = time.time()
# Setting workspace
WorkspaceConfigurator(name='D2W')
# Reading migration feature model
migration_model = MigrationModelReader().migration_model()
# Selection of migrations
'''
This is a pending implementation in the Flama framework.
For the moment, let's assume that the dynamic feature selection
functionality (constraint propagation) is already implemented.
'''
# Get products
products = migration_model.get_all_products()
for p in products:
print(p)
# Get all scripts
migration_model.get_all_scripts()
end = time.time()
print("Execution time: {} milliseconds".format((end - start) * 1000))
if __name__ == "__main__":
main()