Skip to main content

Posts

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...

c++ Programming -11a -do/while

In this programming, we will cover everything we have cover in our c++ programming including switch case, if/else, gotoxy coordination, do/while and system clear First, code for the header file stdafx.h: // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include #include #include #include #include #include using namespace std; // TODO: reference additional headers your program requires here Name the main file anyhow you like. Programming codes for the main file below: // IntAirways.cpp : Defines the entry point for the console application. // #include "stdafx.h" void menu(); void main(); void load_flight1(); void load_flight2(); void load_flight3(); void generate_report(); void exit(); int i=0, y=0, x=0; //setup lools for element of parcels. int space1=0, space2=0, space3=0; // for calculating space left over // afte...

c ++ Programming - 2 - Selective structure - switch case / statement

This covers Selective structure - switch statement First, code for the header file stdafx.h: // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include #include using namespace std; // TODO: reference additional headers your program requires here Name the main file anyhow you like. And the code for the main file below: // swtcase.cpp : Defines the entry point for the console application. // #include "stdafx.h" void main () { int number; cout >number; switch (number) { case 1: cout Check the video on how this works on YouTube here: http://youtu.be/z7sYQqHp51A

c ++ Programming - 1 - c++ Programming - 1 : cin / cout

First quick application covering why you may get iostream, cin and cout errors. Programming code provided below: Copy the following codes into the header file: - stdafx.h: // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include #include using namespace std; // TODO: reference additional headers your program requires here Copy the main code for the main file: 3_test.cpp But you can name your file anything. Below is the rest of the programming codes: // 3_test.cpp : Defines the entry point for the console application. // #include "stdafx.h" //Percentage marks attained by a student in three exams //are to be entered to a computer. An indication of Pass //or Fail is given out after the three marks are entered. //The criteria for passing are as follows: //A student passes if all three examinations are passed. //Addition...