-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_domain_engineering_1.py
More file actions
33 lines (24 loc) · 1004 Bytes
/
test_domain_engineering_1.py
File metadata and controls
33 lines (24 loc) · 1004 Bytes
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
from core.configurators.WorkspaceConfigurator import WorkspaceConfigurator
from core.extractors.mysql.MySQLExtractor import MySQLExtractor
from core.models.mm.MigrationModel import MigrationModel
def main():
print()
print("########################################")
print("You're execute TEST DOMAIN ENGINEERING")
print("########################################")
print()
# Setting workspace
WorkspaceConfigurator(name='D2W')
# SDM from Drupal
drupal_mysql_extractor = MySQLExtractor(env=".env.drupal")
drupal_mysql_extractor.extract()
sdm_source = drupal_mysql_extractor.sdm()
# SMD from WordPress
wordpress_mysql_extractor = MySQLExtractor(env=".env.wp")
wordpress_mysql_extractor.extract()
sdm_target = wordpress_mysql_extractor.sdm()
# Creating migration feature model
migration_model = MigrationModel(sdm_source, sdm_target, 'workspaces/D2W/uvl/D2W.uvl')
migration_model.wizard()
if __name__ == "__main__":
main()