Posts

ACCELQ

Image
View Analyzer Plugin  icon---> CAPTURE THE VEW. ACCELQ Jira plugin ( ACCELQ Connect )  CI Test Execution: Jenkins   ACCELQ supports the execution of Automation scripts in the CI pipeline on Jenkins using the available Jenkins plugin. Download and install the plugin Jenkins Plugin Navigate to the listing of available plugin versions:   https://updates.jenkins.io/download/plugins/accelq-ci-connect/ Click on the latest available ACCELQ plugin release and download.   Click on  Manage Jenkins -> Manage Plugins -> Advanced -> Upload Plugin Upload the plugin and restart Jenkins.   Setting up ACCELQ Automation step Create a new project or select an existing one.   Click on  Configure -> Post Build Action -> Add Post Build Action -> ACCELQ CONNECT   Fill in the form fields with relevant information. Click on the "?" icon beside each field to know more about the expected input and format. Test your connection before ...

Selenium 4 with Java

Image
 Chrome Driver: import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; System. setProperty ( "webdriver.chrome.driver" , "C:\\libs\\drivers\\chromedriver.exe" ); WebDriver driver = new ChromeDriver(); Gecko Driver: System. setProperty ( "webdriver.gecko.driver" , "C:\\libs\\drivers\\geckodriver.exe" ); WebDriver driver = new FirefoxDriver(); Set Drivers in system path: Note : If your browser is upgraded, you have to download a compatible browser driver and copy it to the directory which you added to the path environment variable

Protractor Typescript Cucumber.

Protractor Framework Setup: https://github.com/angular/protractor/blob/5.4.4/exampleTypescript/tsconfig.json 1- npm init  Will create a package.json in the project folder package.json: All the dependencies. 2- npm install In package.json add all dependencies required for protractor, cucumber. { "name": "protractortypescriptcucumber", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "sudheer", "license": "ISC", "dependencies": { "protractor": "^7.0.0", "typescript": "~5.2.2", "jasmine": "~5.1.0", "@types/jasmine":"4.3.5", "@types/jasminewd2": "2.0.10", "ts-node": "1...

Type Script

 is a additiondal feature for java script typescrip= additional +typescript /* ES5- our current browser cannot understand es6 typescript also cannot understand. **-typescript convert script to javascript,es5-browser and protractor will understand-. **-scan the existing intenstiosn , symantics 1- npm install -g typescript 2-create a class bascis.ts 3-tsc basics.ts 4-it will create the js file -basics.js 5-run node basics.js */ basics.ts for ( var i = 0 ; i < 5 ; i ++ ){ setTimeout ( function (){ console . log ( i );}, 100 * i ); } basics.js for ( var i = 0 ; i < 5 ; i ++ ) { setTimeout ( function () { console . log ( i ); }, 100 * i ); } Export -- export class classDemo { // variable is called in class as property //Class consists of properties,methods,constructor //This - refere to current class property username : string ; password : string ; ssn : number ; //default constructor constructor ( ssn : number ){ this . ssn = ssn ...
 Selenium Grid
 Cucumber Notes What is Cucumber in selenium? Cucumber Framework in Selenium is an open-source testing framework that supports Behavior Driven Development for automation testing of web applications. The tests are first written in a simple scenario form that describes the expected behavior of the system from the user’s perspective. What is a feature file? A standalone unit or a single functionality (such as a login) for a project can be called a Feature. Each of these features will have scenarios that must be tested using Selenium integrated with Cucumber. A file that stores data about features, their descriptions, and the scenarios to be tested is called a Feature File Keywords such as GIVEN, WHEN, and THEN used to write the test in Cucumber are called Annotations. GIVEN user navigates to the login page by opening Firefox WHEN user enters correct <username> AND <password> values THEN user is directed to the homepage What is step Definition? A Steps Definitions file stor...

Synczation-js

  const { protractor , element } = require ( "protractor" ); describe ( '' , function (){ it ( '' , function (){ browser . waitForAngularEnabled ( false ); browser . get ( 'https://demos.telerik.com/aspnet-ajax/ajaxmanager/functionality/validation/defaultcs.aspx?product=ajaxpanel' ); element ( by . id ( 'ctl00_ContentPlaceholder1_tbName' )). sendKeys ( 'sudheer' ); element ( by . id ( 'ctl00_ContentPlaceholder1_tbEmail' )). sendKeys ( 'sudheer@qa.com' ); element ( by . name ( 'ctl00$ContentPlaceholder1$RegisterButton' )). click (); //Synczation-js var EC = protractor . ExpectedConditions ; // Waits for the element with id 'abc' to be visible on the dom. browser . wait ( EC . visibilityOf ( element ( by . id ( 'ctl00_ContentPlaceholder1_Label3' ))), 5000 ); browser . element ( by . id ( 'ctl00_ContentPlaceholder1_...