30 lines
911 B
JavaScript
30 lines
911 B
JavaScript
import express from 'express';
|
|
|
|
//import authentication test scripts
|
|
//import loginTest from './tests/login.js';
|
|
import ExACT_landingPage from './tests/ExACT_landingPage.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 exeucate 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>
|
|
<br>
|
|
</div>
|
|
`);
|
|
})
|
|
|
|
//Authentication Test Automations Routes
|
|
//app.get('/login', loginTest);
|
|
app.get('/ExACT_landingPage', ExACT_landingPage);
|
|
|
|
app.listen(8000, () => {
|
|
console.log('Server is running on port 8000');
|
|
}); |