Skip to main content

Posts

Working with Software Downloads

Working with Software download. This testing does not requires user to subscribe to download software. User would have a limited time to then purchase software package com.consciousit.WebAndroidTest; import java.net.MalformedURLException; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; public class ConsITLaptopTest { public WebDriver driver ; @BeforeTest public void beforeTest() { //instantiate Chrome Browser driver System.setProperty( "webdriver.chrome.driver" , "/Users/tester/Documents/webDrivers/chrome/chromedriver" ); driver = new ChromeDriver(); driver .get( "https://consciousit.co.uk" ); } @Test (priority=1) public void testDownloadBuy() throws MalformedURLException, InterruptedException { //d...

Working with Dropdownbox elements in Selenium WebDriver

How to select element from a Dropbox We are going to use Selenium webDriver and chrome driver to test this. In addition, this test was created on Mac.  I assume you have installed and setup java in your system path.  Also, install Eclipse for jee. 1. First let's take a look at a quick test case: Test case: TC_1. Register on http://automationpractice.com/index.php TC_1.1: Launch hope page -http://automationpractice.com/index.php TC_1.2 : Click on link ‘Sign in’ TC_1.3 : Under “Create Account” subheading, enter Email address in ‘Email address’ textfield TC_1.4 : Click on ‘Create an account’ button. —————————————————————————————— Test data: Email address: gorgeous12@hotmail.com http://automationpractice.com/index.php ---------------------------------------------------------------- Expected : http://automationpractice.com/index.php?controller=my-account ———————————------------ 2. Next, create a maven project in Eclipse 3....

Getting started with Selenium on Mac

Getting Selenium working on Mac 1. Download Java - jdk from: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Fllow the instructions to install jdk. Add jdk installed path to your environment. On Mac - Go to the terminal and type nano .profile Type the folowing into your profile: JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home export JAVA_HOME Select your Control key and o on your keyborad to write out. Press Enter to accept the changes. Then, Control and x to come off. Check that jdk is installed. Go to another terminal, type - java -version Something like the following should return-   java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode) 2. Download Eclipse IDE for jee users- https://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplersr2 Follow the instr...

Software Development step by step - part 1

Human-computer interaction: Natural computing, people and systems This program would cover analysis, to requirements and design step by step - Introduction An opportunity to create an online train ticket system. To achieve the aims, there is a need to research on the current manual train ticket systems and then build requirements base on these. Design and prototype are to be developed to meet the requirements. An evaluation of the system design is to be conducted by the designer, before prototype of the system is developed. Designers are permitted to use three other users from the public to evaluate the prototype and details are to be recorded. A diagram of the break down of the system we are going to analyse. - the current system Task Analysis Diagram Actions Textual presentation Buying a train ticket 1. Choose a Train Station 2. Enter the ...

Shape test programe - java

A java programe created with java swing and awt.  Designed to test user on their maths calculations with shapes - perimeters and areas. It's a project I am planning hopefully to extend into a web application.  Screen shots below. complete code here Running the ShapesTest.java Running ShapesBut.java Youtube video: https://youtu.be/Jp9x2-TG0Yc Find complete code on git: https://github.com/eve1234/ShapesELearning Find project documentation file : https://drive.google.com/file/d/1X38ElzdZTh5P92jHyLY_PANZKAbVNuwT/view?usp=sharing Thanks for reading

Intercort Airways - java

IntercortAirways Tried my best to convert the code from c++ into java A program use to record the total weight that a flight can carry load. Then parcels are loaded into the flight until it full. There are 3 flights. In the end user can generate a report all flights and how much profits gained. I used Netbeans to create and run my code. Below are the print screens.    Code: /*  * To change this license header, choose License Headers in Project Properties.  * To change this template file, choose Tools | Templates  * and open the template in the editor.  */ package intercortairways; import java.util.Scanner; /**  *  * @author Yvonne Kwarteng  */ public class IntercortAirways {     /**      * @param args the command line arguments      */     //public variables       public static int i=0, y=0, x=0;  //setup lools for eleme...