File size: 5,384 Bytes
279c973
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SIT Testing - TestCaseMaster Pro</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="components/navbar.js"></script>
    <script src="components/sidebar.js"></script>
    <script src="components/test-case-item.js"></script>
</head>
<body class="bg-gray-50">
    <custom-navbar></custom-navbar>
    
    <div class="flex">
        <custom-sidebar></custom-sidebar>
        
        <main class="flex-1 p-8">
            <div class="flex justify-between items-center mb-8">
                <h1 class="text-3xl font-bold text-gray-800">System Integration Testing</h1>
                <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
                    <i data-feather="plus" class="mr-2"></i> Create SIT Test
                </button>
            </div>
            
            <div class="bg-white rounded-lg shadow p-6 mb-6">
                <div class="flex items-center justify-between mb-4">
                    <h2 class="text-xl font-semibold">SIT Dashboard</h2>
                    <div class="flex items-center space-x-4">
                        <div class="relative">
                            <input type="text" placeholder="Search SIT tests..." 
                                class="pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
                            <i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
                        </div>
                        <select class="border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
                            <option>All Components</option>
                            <option>API</option>
                            <option>Database</option>
                            <option>UI</option>
                        </select>
                    </div>
                </div>
                
                <div class="grid grid-cols-1 md:grid-cols-4 gap-4 mt-6">
                    <div class="bg-blue-50 p-4 rounded-lg">
                        <div class="text-blue-800 font-semibold">Total SIT Tests</div>
                        <div class="text-2xl font-bold">128</div>
                    </div>
                    <div class="bg-green-50 p-4 rounded-lg">
                        <div class="text-green-800 font-semibold">Passed</div>
                        <div class="text-2xl font-bold">98</div>
                    </div>
                    <div class="bg-red-50 p-4 rounded-lg">
                        <div class="text-red-800 font-semibold">Failed</div>
                        <div class="text-2xl font-bold">12</div>
                    </div>
                    <div class="bg-yellow-50 p-4 rounded-lg">
                        <div class="text-yellow-800 font-semibold">Pending</div>
                        <div class="text-2xl font-bold">18</div>
                    </div>
                </div>
            </div>
            
            <div class="grid grid-cols-1 gap-4" id="sit-tests-container">
                <!-- SIT test items will be loaded here -->
            </div>
        </main>
    </div>
    
    <script>
        feather.replace();
        
        document.addEventListener('DOMContentLoaded', function() {
            loadSITTests();
        });
        
        function loadSITTests() {
            const container = document.getElementById('sit-tests-container');
            container.innerHTML = '';
            
            const sitTests = [
                { 
                    id: 101, 
                    title: 'API Integration Validation', 
                    description: 'Verify all API endpoints work together correctly',
                    priority: 'Critical',
                    status: 'Passed',
                    type: 'SIT',
                    component: 'API',
                    lastRun: '2 hours ago'
                },
                { 
                    id: 102, 
                    title: 'Database Synchronization', 
                    description: 'Validate data consistency across all databases',
                    priority: 'High',
                    status: 'Failed',
                    type: 'SIT',
                    component: 'Database',
                    lastRun: '1 day ago'
                },
                { 
                    id: 103, 
                    title: 'End-to-End Workflow', 
                    description: 'Test complete user journey across all systems',
                    priority: 'High',
                    status: 'Pending',
                    type: 'SIT',
                    component: 'UI',
                    lastRun: 'Not run yet'
                }
            ];
            
            sitTests.forEach(test => {
                const el = document.createElement('test-case-item');
                el.setAttribute('data', JSON.stringify(test));
                container.appendChild(el);
            });
        }
    </script>
    <script src="script.js"></script>
</body>
</html>