How to use Rest Assured Framework in aiTest
How to use Rest Assured Automation Framework in aiTest.
Knowledge Base for aiTest
By supporting the Puppeteer Framework within aiTest, you can expand its capabilities and offer a more comprehensive testing solution. This integration enables efficient Multi-Browser Testing, Load Testing, and Stress Testing.
npm run
.Report/Test_Report.html
, Report/Test_Report.json
and Report/Test_Report.xml
Use the code snippet provided below:
const puppeteer = require("puppeteer"),
should = require("should");
let browser = null,
page = null;
describe("marXeed", function (){
this.timeout(60 *1000);
before(async () => {
// browser = await puppeteer.launch({headless:false})
browser = await puppeteer.launch({
args: ['--no-sandbox', '--disable-setuid-sandbox'], headless:true
});
page = await browser.newPage();
await page.setViewport({ width: 1280, height: 800 })
});
after(async () => {
await browser.close()
});
it("Should show Page title", async function() {
await page.goto('https://app.dev.marxeed.com/home');
this.timeout(60 * 1000);
let title = await page.title();
title.should.equal("marXeed");
await page.screenshot({path: 'marxeedpage.png'});
await page.pdf({path: 'marxeedpage.pdf', format: 'A4'});
});
it("Should show Trending Blogs Page title", async function() {
await page.goto('https://app.dev.marxeed.com/home');
this.timeout(60 * 1000);
await page.type('#trendingBlogs > div > p');
this.timeout(60 * 1000);
await page.keyboard.type('#root > div > div.jss2.ps > div.jss3.Main_contentMT__35B-v > div > div > div > div > div > div:nth-child(1) > div > div:nth-child(1) > h4');
this.timeout(60 * 1000);
title.should.notequal("Trending Blogs");
await page.screenshot({path: 'Trendingpage.png'});
await page.pdf({path: 'Trendingpage.pdf', format: 'A4'});
});
});