
// import failFast from 'protractor-fail-fast';
exports.config = {
directConnect: true,
restartBrowserBetweenTests: false,
capabilities: {
browserName: "chrome",
loggingPrefs: {
driver: "ALL",
server: "ALL",
browser: "ALL",
},
chromeOptions: {
args: [
"--no-sandbox",
"--ignore-certificate-errors",
"--start-maximized",
"--disable-web-security",
"--enable-logging",
"--disable-infobars",
"--incognito",
"--disable-extensions",
],
prefs: {
// disable chrome's annoying password manager
"profile.password_manager_enabled": false,
credentials_enable_service: false,
password_manager_enabled: false,
},
},
}, //browser.params.glob.contractNo
params: {
glob: {
contractNo: "",
xyz: "",
srv3: 0,
winHandles: "",
},
auth: {
//settings for the authorizations and the test type E2E/UI-Component Test [2]
formType: "plain",
// username: 'PURCHASER',
// password: 'Welcome1!'
},
//settings for the coverage [3]
coverage: {
status: false,
coverage_files: ["mm_po_manages1"],
//To exclude files/folders you don't want to cover you can use the exclamation mark "!"
//['sap/bc/ui5_ui5/sap','!CUAN_SHELL_LIB/FLPPlugin','!cuan_shell_lib/FLPPlugin']
sourcePath: "./sourceFolder",
},
},
baseUrl:
"YOUR_SAP_UI5_APPLICATION_URL",
framework: "jasmine2",
// Spec patterns are relative to the current working directory when [5]
// protractor is called.
specs: ["FirstScript.js"],
// Options to be passed to Jasmine.
jasmineNodeOpts: {
showColors: false,
//silent: true,
defaultTimeoutInterval: 3000000,
allScriptsTimeout: 3000000,
},
};
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "launch current opened config.js",
"program": "BASE_PATH\\vyperForAll\\protractor\\bin\\protractor",
"args":["${workspaceRoot}/config.js"]
}
]
}
describe ( "script", function () {
it("Step 01: navigate to demo SAP UI5 app", async function () {
let url = "YOUR_SAP_UI5_APPLICATION_URL";
await ui5.common.navigation.navigateToUrl(url);
});
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
36 | |
36 | |
17 | |
15 | |
8 | |
8 | |
8 | |
7 | |
7 | |
7 |