The wait is finally over! The Cyber Express is thrilled to announce the much-anticipated return of World CyberCon, India Edition.…
Development
A dark web actor named “komarod†is claiming credit for a June 8 Shadow PC data breach, allegedly stealing data…
Cybersecurity researchers have spotted a phishing attack distributing the More_eggs malware by masquerading it as a resume, a technique originally…
NHS Blood and Transplant (NHSBT) is urgently appealing for O blood-type donors across England after a ransomware attack affected several…
Data breaches affecting customers of the cloud storage provider Snowflake have hit about 165 organizations so far, according to a…
While the new-generation Xbox One consoles have been out for a while, until recently there weren’t any softmods (software modifications…
Microsoft and Google have announced plans to offer free or highly discounted cybersecurity services to rural hospitals across the United…
In this post, we explore how to use Amazon Aurora PostgreSQL-Compatible Edition and Amazon Bedrock to build Federal Risk and…
Post Content Source: Read MoreÂ
Post Content Source: Read MoreÂ
Post Content Source: Read MoreÂ
In the ever-evolving landscape of machine learning and artificial intelligence (AI), large language models (LLMs) have emerged as powerful tools…
The emergence of large language models (LLMs) such as Llama, PaLM, and GPT-4 has revolutionized natural language processing (NLP), significantly…
Can anyone please suggest me, how to analyse the generated hits per second and active thread over time graphs
I am getting broken image for screenshot. Unable to take screenshot in protractor framework. Please anyone help on this.
My code:
testconfig.js file
var fs = require(‘fs-extra’);
var today = new Date(),
timeStamp = today.getMonth() + 1 + ‘-‘ + today.getDate() + ‘-‘ + today.getFullYear() + ‘-‘ + today.getHours() + ‘h-‘ + today.getMinutes() + ‘m’;
console.log(timeStamp)
exports.config = {
directConnect: true,
// seleniumAddress: ‘http://localhost:4444/wd/hub’,
capabilities: {
‘browserName’: ‘chrome’,//firefox
},
suites: {
regression: ‘../specs/sample.js’,
},
allScriptsTimeout: 50000,
jasmineNodeOpts: {
onComplete: null,
isVerbose: false,
showColors: true,
includeStackTrace: true,
defaultTimeoutInterval: 999999,
},
framework: ‘jasmine2’,
onPrepare: function () {
browser.manage().window().maximize();
browser.waitForAngularEnabled(false);
// var ChercherTechJasmineReporter = reporter.ChercherTechJasmineReporter;
// jasmine.getEnv().addReporter(new ChercherTechJasmineReporter({
// screenshotOnFail :false,
// showSkipped:false,
// browser:browser,
// showLineChart:true
// }));
const SpecReporter = require(‘jasmine-spec-reporter’).SpecReporter;
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
// displayStacktrace: true
displayStacktrace: false
}
}));
//Getting XML report
var jasmineReporters = require(‘jasmine-reporters’);
jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
consolidateAll: true,
filePrefix: ‘guitest-xmloutput’,
savePath: ‘.’
}));
fs.emptyDir(‘/’, function (err) {
console.log(“Error message=”,err);
});
jasmine.getEnv().addReporter({
specDone: function(result) {
// if (result.status == ‘failed’) {
browser.getCapabilities().then(function (caps) {
var browserName = caps.get(‘browserName’);
browser.takeScreenshot().then(function (png) {
// var stream = fs.createWriteStream(‘screenshots/’ + browserName + ‘-‘ + result.fullName+ ‘.png’);
var stream = fs.createWriteStream(‘./’ + browserName + ‘-‘ + result.fullName+ ‘.png’);
// var stream = fs.createWriteStream(‘./’ + ‘-‘ + result.fullName+ ‘.png’);
stream.write(new Buffer(png, ‘base64’));
stream.end();
});
});
// }
}
});
},
// onComplete:function(exitcode){
// reporter.write_consolidated()
// },
//
// afterLaunch:function(exitcode){
// return new Promise(function(resolve){
// reporter.processResults()
// return 0
// })
// },
onComplete: function() {
var browserName, browserVersion;
var capsPromise = browser.getCapabilities();
capsPromise.then(function (caps) {
browserName = caps.get(‘browserName’);
browserVersion = caps.get(‘version’);
platform = caps.get(‘platform’);
var HTMLReport = require(‘protractor-html-reporter-2’);
testConfig = {
reportTitle: ‘TAP Test Execution Report’,
// outputPath: ‘./new/test/scripts/TestReports’,
outputPath: ‘./’,
outputFilename: ‘ProtractorTestReport’+timeStamp,
screenshotPath: ‘./’,
testBrowser: browserName,
browserVersion: browserVersion,
modifiedSuiteName: false,
screenshotsOnlyOnFailure: false,
testPlatform: platform
};
new HTMLReport().from(‘guitest-xmloutput.xml’, testConfig);
});
},
SELENIUM_PROMISE_MANAGER: true
};
spec-sample.js file
describe(‘Protractor – takeScreenshot()’, function () {
it(‘Code script to use takeScreenshot() in protractor’, function () {
browser.get(“https://keeplearners.blogspot.com/2018/03/Angular-elements.html”);
var textField = element(by.model(‘name’));
textField.sendKeys(“Entered sample text”)
});
} )
output:
Test Guild – Automation Testing Tools Community
Top 18 Visual Testing Tools for Testers (2024 Guide)
When you’re a web developer, making sure that your site looks great – and works correctly – is of the utmost importance. But how can you be sure that everything is free of visual bugs? Enter visual testing. But for folks who don’t have a budget, there’s been this question, “Are there any FREE, open-source
You’re reading Top 18 Visual Testing Tools for Testers (2024 Guide), originally posted on Test Guild – Automation Testing Tools Community – and copyrighted by Joe Colantonio
When employees leave their workspaces behind — whether that’s for the night, the weekend, a longer vacation or just a…
The chief blockchain officer is responsible for designing and implementing data-driven, forward-looking blockchain strategies aligned with business objectives. This role…
Welcome to GitHub for Beginners, our series to help newcomers like you learn the basics of everything from repositories to…
A company’s network must be secured to ensure the safety of its data against the risks of cyberthreats. Source: TechRepublicÂ