Cleaned up script title
This commit is contained in:
@@ -4,7 +4,7 @@ import XLSX from 'xlsx';
|
||||
import path from 'path';
|
||||
|
||||
const ExACT_landingPage = (req, res) => {
|
||||
res.send('<h2>ExACT Automated Test Script - ExACT Landing Page: Initiated</h2>');
|
||||
res.send('<h2>ExACT Automated Test Script: ExACT Landing Page(ExACT_landingPage); Initiated</h2>');
|
||||
(async function example() {
|
||||
let driver = await new Builder().forBrowser('chrome').build();
|
||||
let testStatus = 'Failed';
|
||||
@@ -489,7 +489,7 @@ const takeScreenshot = async (driver, stepIndex, stepDescription) => {
|
||||
return screenshotPath;
|
||||
};
|
||||
|
||||
const clearOldResults = () => {
|
||||
const clearOldResults = () => {
|
||||
// Remove old screenshots
|
||||
const screenshotDir = path.join('screenshots', 'landingPage');
|
||||
if (fs.existsSync(screenshotDir)) {
|
||||
@@ -501,7 +501,7 @@ const takeScreenshot = async (driver, stepIndex, stepDescription) => {
|
||||
if (fs.existsSync('landingPageResults.xlsx')) {
|
||||
fs.unlinkSync('landingPageResults.xlsx');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
try {
|
||||
// Initialize workbook and worksheet
|
||||
@@ -540,10 +540,10 @@ try {
|
||||
const expectedEdGateCopyright = await driver.wait(until.elementLocated(By.css('.logincopyright > img')), 5000).catch(() => false);
|
||||
|
||||
if (expectedEdGateCopyright && allStepsPassed) {
|
||||
console.log('PASSED: ExACT Landing Page - All test steps completed successfully');
|
||||
console.log('PASSED: ExACT Landing Page(ExACT_landingPage); All test steps completed successfully');
|
||||
testStatus = 'Passed';
|
||||
} else {
|
||||
console.log('FAILED: ExACT Landing Page - One or more test steps did not pass');
|
||||
console.log('FAILED: ExACT Landing Page(ExACT_landingPage); One or more test steps failed');
|
||||
testStatus = 'Failed';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user