This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
below are the file content | |
1. cypress.config.ts | |
2. cypress/tsconfig.json | |
3. tsconfig.json(global) file where the changes w.r.t bundle needed for cypress cucumber preprocessor from Badeball is not sujjested | |
Reference link. | |
File contents: | |
cypress/tsconfig.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Homepage_Generic } from "../../../../pages/automation/generic/homePage"; | |
import { IssuesPanel } from '../../../../pages/automation/generic/issuesPanel'; | |
import { ContactSearchPage } from "../../../../pages/automation/generic/contactSearch"; | |
import { BillingPage } from "../../../../pages/automation/generic/billingPage"; | |
import { CustomerOverview } from "../../../../pages/automation/generic/customerOverview"; | |
import { Profile } from "../../../../pages/automation/generic/profile"; | |
import { createNewCustomer_type_consumerType } from "../../../../utility/generic/createNewCustomer_ConsumerType_Postpaid"; | |
import { searchCustomer_passportID } from "../../../../utility/generic/searchCustomer_passportID"; | |
import { createNewContact } from "../../../../pages/automation/generic/createNewContact"; | |
import { Login_generic } from "../../../../utility/generic/login-generic"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = 'C:\\Users\\kemtej01\\projects\\ADO-Repos\\ccui\\cypress\\e2e\\automation\\generic'; | |
// Read the contents of the directory | |
fs.readdir(path, { withFileTypes: true }, (err, files) => { | |
if (err) { | |
console.error('Error reading directory:', err); | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Ob jective: | |
The below line of code will remove all the unnessary files in the windows machine which will | |
cause in the memory time out issue. | |
---------------------------------------------------------- | |
erase "%TEMP%\*.*" /f /s /q | |
erase "%SystemRoot%\TEMP\*.*" /f /s /q | |
erase "%LOCALAPPDATA%\Google\Chrome\User Data\*.*" /f /s /q | |
erase "%LOCALAPPDATA%\Mozilla\Firefox\Profiles\*.*" /f /s /q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cy.fixture('audio/track1.mp3', 'base64').then((mp3) => { | |
const uri = 'data:audio/mp3;base64,' + mp3 | |
const audio = new Audio(uri) | |
audio.play() | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var { SpecReporter } = require('jasmine-spec-reporter'); | |
exports.config = { | |
directConnect: true, | |
specs: ['todo-spec.js'], | |
onPrepare: function () { | |
//console logs configurations | |
jasmine.getEnv().addReporter(new SpecReporter({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Protractor configuration file, see link for more information | |
// https://github.com/angular/protractor/blob/master/lib/config.ts | |
const { SpecReporter } = require('jasmine-spec-reporter'); | |
exports.config = { | |
allScriptsTimeout: 11000, | |
specs: [ | |
'./src/**/*.e2e-spec.ts' | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var HtmlReporter = require('protractor-html-screenshot-reporter'); | |
exports.config = { | |
sauceUser: process.env.SAUCE_USER_NAME, | |
sauceKey: process.env.SAUCE_ACCESS_KEY, | |
sauceSeleniumAddress: process.env.SELENIUM_HOST + ':' + process.env.SELENIUM_PORT + '/wd/hub', | |
specs: [ | |
'app/public/tests/e2e/*.js' | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.18.1</version> | |
<configuration> | |
<suiteXmlFiles> | |
<suiteXmlFile>testng.xml</suiteXmlFile> | |
</suiteXmlFiles> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.19.1</version> | |
<configuration> | |
<suiteXmlFiles> | |
<suiteXmlFile>C:\Users\Tejkumar\Desktop\GIT\API_Automation_Kempaiah\testng.xml</suiteXmlFile> | |
</suiteXmlFiles> |
NewerOlder