Skip to main content

Posts

Showing posts with the label @Test

Cypress UI Automation - part 1

Java to Cypress-JavaScript Automation Migration Introduction: Across Cancer Research UK engineering department, we currently use a Java automation framework for our User interface and API testing. The framework has evolved in the last 3 to 4 years and currently, we have 19 products/project, (running approximately 1350 test scenarios) using the framework to run the respective sanity/regression packs. The project/products extend across different technology stacks such as Drupal, Symphony, React JS, .Net, OBI and Siebel CRM.   The Quality Assurance (QA) test team are currently under the process to be transformed into a fully-fledged Quality Assurance function.   As part of this transformation, we would like to have a comprehensive, automated test suite that can be maintained by developers and testers. Furthermore, our front-end web development is moving into JavaScript, now is the right time to migrate our automation framework also from java into JavaScript. The introduction ...

Error Capturing -part 1

We need to capture some errors messages from the website we are testing. Here is our test case: 2.3 Check for validation 2 - Sign in 2.3.1: Launch hope page -http://automationpractice.com/index.php 2.2 .2: Click on link ‘Sign in’ 2.3.3 Under “Create Account” subheading, under ’Email address’ Enter email address that is already registered in text field 2.34 Click on Create an account button. 2.3.5 Capture error message ————————————————————— package com.automationpractice.AutomationPractice; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; /**  *  */ public class LaunchCloseApp { WebDriver driver ; @BeforeClass public void launchApp() { //instantiate Chrome Browser driver System.setProperty( "webdriver.chrome.driver" , "/Users/tester/Documents/webDrivers/chrome/chromedriver" ); driver ...