Files
EdGateAutomatedRegression/index.js
2024-10-07 13:52:31 -07:00

32 lines
1.0 KiB
JavaScript

import express from 'express';
//import authentication test scripts
//import loginTest from './tests/login.js';
import ExACT_landingPage from './tests/ExACT_landingPage.js';
import ExACT_login from './tests/ExACT_login.js';
const app = express();
app.get('/', (req, res) => {
res.send(`
<div style="text-align:center; background:#ccc;" width="100%">
<h1 style="text-align:center; color:#055a8c; padding-top: 40px;">ExACT</h1>
<h1 style="text-align:center; color:#001; padding-top: 10px;">Click the corresponding link to execute the desired automated test case script:</h1>
<br><div style="padding:3px;"><strong><a href='/ExACT_landingPage' target='_blank'>Landing Page</a></strong></div>
<br><div style="padding:3px;"><strong><a href='/ExACT_login' target='_blank'>Login</a></strong></div>
<br>
</div>
`);
})
//Landing:
app.get('/ExACT_landingPage', ExACT_landingPage);
//Login
app.get('/ExACT_landingPage', ExACT_login);
app.listen(8000, () => {
console.log('Server is running on port 8000');
});