-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
59 lines (48 loc) · 1.97 KB
/
README.txt
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
45
46
47
48
49
50
51
52
53
54
55
56
57
Folder Structure :
automation_framework/
├── include/
│ ├── csvfile.h # Header file for CSVFile class
│ ├── comparator.h # Header file for Comparison and Comparator class
├── src/
│ ├── csvfile.cpp # Implementation file for CSVFile class
│ └── comparator.cpp # Implementation file for Comparison and Comparator class
├── tests/
│ └── csv_comparator_test.cpp # Tests for CSV comparator functionality (Entry point for the test)
├── data/
│ ├── file1.csv
│ └── file2.csv
└── file3.csv
| └── file4.csv
| └── file5.csv
└── file6.csv
Building and Running the project:
1. Clone the repo automation_framework_csv
2. csv_comparator_test.cpp is the entry point of the project.
2, Build the project and an executable will be generated.
3. Executable will be generated at automation_framework\cmake-build-debug\automation_framework.exe
4. Run the executable automation_framework.exe
5. The user will be prompted to input the numbers of the input files to be compared (eg. 1 2)
6. The test cases will be called and a Summary of results will be printed.
Environment Used:
Windows 11 OS Home
64bit, x64 arch
Processor - Intel i5
Sample Input/Output:
C:\Users\Denny\CLionProjects\automation_framework\cmake-build-debug\automation_framework.exe
PASS: CSV file loaded
Available CSV files:
1: ../data/file1.csv
2: ../data/file2.csv
3: ../data/file3.csv
4: ../data/file4.csv
5: ../data/file5.csv
6. ../data/file6.csv
Enter the numbers of the two files to compare (e.g., 1 2) or enter 0 to exit :1 5
SUCCESS Headers are matching
FAILURE Row or colums are not matching
SUCCESS Column counts are matching
FAILURE Row counts are not matching
Summary of Results:
Number of PASS: 2
Number of FAIL: 2
The promprt will continue until the user enter 0 or if the user input 'n' or 'N' to the prompt "Do you want to continue".