Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Organized

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

A Report on

“Algorithm Based Automated Trading System"


A project is submitted in partial fulfillment of the requirement

for the Degree in Bachelor of Engineering

in

Computer Engineering

by

1. Project member name

2. Project member name

3. Project member name

4. Project member name

Under the guidance of

Guide name

SAVITRIBAI PHULE UNIVERSITY OF PUNE

Department Computer Engineering


TSSM’S BHIVARABAI SAWANT COLLEGE OF ENGINEERINGAND

RESEARCH, PUNE-41

ACADEMIC YEAR - 2024-2025


Acknowledgement

It is a privilege for us to have been associated with guide Vaishnavi Jagtap during
this project work. We have been greatly benefited by their valuable suggestions and
ideas. It is with great pleasure that we express our deep sense of gratitude to them for
their valuable guidance, constant encouragement and patience throughout this work.

We express our gratitude to G A Hinge Principal, Priya Kadam HOD of Computer


Department for their constant encouragement, cooperation and support . We express our
sincere thanks to Lab Assistants for providing the Lab Facilities.

We take this opportunity to thank all our classmates for their company during the course work
for useful discussion we had with them.

Anurag Mahajan
Jagdish Wagh
Nikhil Patil
Mayur Borse
Table of Contents

1. Introduction

2. Steps

3. Selenium Testing

4. Regular Expression

5. Sample Program

6. Screenshots

7. Test Results

8. Used Tools

9. Conclusion
ACKNOWLEDGEMENT

It is a privilege for us to have been associated with guide guide name during this
project work. We have been greatly benefited by their valuable suggestions and
ideas. It is with great pleasure that we express our deep sense of gratitude to them
for their valuable guidance, constant encouragement and patience throughout this
work.

We express our gratitude to Principal name, Principal, , Hod name, HOD of


Computer Department for their constant encouragement, cooperation and support .
We express our sincere thanks to Lab Assistants for providing the Lab Facilities.

We take this opportunity to thank all our classmates for their company during the
course work and for useful discussion we had with them.
Title:
Software Testing and Quality Assurance Mini Project Dynamic webside of covid-19
information using HTML, CSS, JAVASCRIPT And PHP, MySQL database used to store user
account, comment, and registration form details. Regular Expression testcases for testing
purpose

Problem Definition:

Perform regular expression testing using selenium.

Objective
We are going to learn how to Prepare Test Cases inclusive of Test Procedures for identified Test
Scenarios. Perform selenium testing with regular expression check
Prepare Test Reports based on Test Pass/Fail Criteria.

Theory

Test Plan for Website Testing

The Test Plan document is derived from the Product Description, Software Specification, Use
Case Documents. The focus of the test is what to test, how to test, when to test, and who will
test. Test plan document is used as a communication medium betweentest team and test
managers.
A standard test plan for Website Testing should define following features;

 Define the scope of testing


 Define objective of testing
 Approach for testing activity
 Schedule for testing
 Bug tracking and reporting
ABSTRACT
Steps for Download & Install Selenium WebDriver :

1. Install Java on your computer


2. Install Eclipse IDE
3. Download the Selenium Java Client Driver
4. Configure Eclipse IDE with WebDriver

SELENIUM TESTING :

Selenium is an open source umbrella project for a range of tools and libraries aimed at
supporting browser automation. It provides a playback tool for authoring functional tests
across most modern web browsers, without the need to learn a test scripting language. The
Regular expressions are a very useful technique for improving Selenium WebDriver tests.
They can be used for

 extracting text from the value of a webelement


 validating if a value matches a specific pattern
 validating if a url matches a pattern
Validations Using Regular Expression :
Let’s look into regular expressions using a specific test case.
Our test case does the following:

1. open the home page of a site (http://www.vpl.ca)


2. execute a keyword search (example: keyword = java)
3. the first results page is displayed
4. validate that the url is correct
ex.(https://vpl.bibliocommons.com/search?q=java&t=keyword )

5. validate that results count is greater than 0 (1 – 25 of 905 items; the results count is
905)

6. select page 2 of results


7. the second results page is displayed
TSSM’s

BHIVARABAI SAWANT COLLEGE OF ENGINEERING

AND RESEARCH, NARHE, PUNE-41

CERTIFICATE

This is to certify that the project title "Project Title Name " is submitted in the
partial fulfillment of the project work for the Bachelor's degree in Computer
Engineering from Savitribai Phule Pune University in academic year 2024-
2025.

By
1.
2.
3.
4.

________________________ ________________________

Prof. A. D. Gujar Dr. G.A. Hinge


(HOD Computer) (Principal)

_________________________ _______________________

Prof. S. P. Bhadre
(Internal guide) ( External guide)
8. validate that the url is correct
ex.(https://vpl.bibliocommons.com/searchdisplay_quantity=25&page=2&q=java&t=keyword)

9. validate that the results count is greater than 0 (26 – 50 of 905 items; the results
count is 905)

For the first validation, we should verify that the following urls are correct:
https://vpl.bibliocommons.com/search?q=java&t=keyword
https://vpl.bibliocommons.com/search?display_quantity=25&page=2&q=java&t=
keyword

It would be great to use the same code to validate both urls since they are similar.

The second url just adds 2 additional parameters.


For the second validation, we should extract the results count from the following texts:

1 – 25 of 905 items
26 – 50 of 905 items

Again, we should try to use the same code to extract the result count from both texts since they
have the same pattern.

For both validations, we could use String methods and variables.


But regular expressions do the same things better.

First, some details about the project

The project uses 3 class :

1. Before class :
The @BeforeClass annotated method runs before the execution of test methods in a
current class.
2. After class :
The @AfterClass annotated method will be executed after all the test methods of a
current class have been invoked.
Table of Contents

Content
Sr.no
1 Acknowledgment

2 Abstract

3 Brief about each chapter

4 List figures

5 Chapter 1:-Introduction

6 Chapter 2:- Literature survey

7 Chapter 3:-

8 Chapter 4:-

9 Chapter 5:-

10 Chapter 6:-

11 Chapter 7:-

12 Chapter 8:-

13 Chapter 9:- Future Scope

14 Chapter 10:- Conclusion

15 Chapter 11:- References & Research

16 Chapter 12:- Appendix


3. Test class :
The @Test class annotated method is containing test logic which is automate the
webpage.

We are testing it on sign up page


Code :
package Test;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.AfterClass;

public class SignUpTest {


public WebDriver driver;

@Test
public void Signup() {
// Open Website
driver.get("http://localhost/Covid19-
TMS%20Project%20Using%20PHP%20and%20MySQL/covid-tms/new-user-testing.php");

// Sending full name


driver.findElement(By.id("fullname")).sendKeys("Swapnil Rajendra Take");

// Send phone to text field


driver.findElement(By.id("mobilenumber")).sendKeys("8600789879");

// DOB
driver.findElement(By.id("dob")).sendKeys("09-04-2000");

// Govt Issued ID
driver.findElement(By.id("govtissuedid")).sendKeys("Adhar");

// ID Number
driver.findElement(By.id("govtidnumber")).sendKeys("979325686414");
Details of Chapters

Content Page no.


Sr.no
1 Acknowledgment

2 Abstract

3 Brief about each chapter

4 List figures

5 Chapter -1:- Introduction to stock market

6 Chapter 2:- Literature survey

7 Chapter-3:- Types of stock & Stock market

3.1
3.2
8 Chapter 4:-
4.1.1
4.1.2
9 Chapter 5:-

10 Chapter 6:-

11 Chapter 7:-

12 Chapter 8:-

13 Chapter 9:- Future Scope

14 Chapter 10:- Conclusion

15 Chapter 11:- References & Research

16 Chapter 12:- Appendix


// Address
driver.findElement(By.id("address")).sendKeys("Newasa");

// State
driver.findElement(By.id("state")).sendKeys("Maharashtra");

// Test Type
driver.findElement(By.id("testtype")).sendKeys("RT-PCR");

// Time for test


driver.findElement(By.id("birthdaytime")).sendKeys("22-12-2022 13:20");

// Submit Button

driver.findElement(By.xpath("/html/body/div/div/div/div/form/div/div[2]/div/div[2]/div[3]/inp
ut")).click();
}

@BeforeClass
public void beforeClass() {
System.setProperty("webdriver.chrome.driver",
"C:\\Users\\Swapn\\OneDrive\\Desktop\\chromedriver.exe");
driver = new ChromeDriver();
}

@AfterClass
public void afterClass() {
driver.quit();
}
}
List of figures

SR.NO CHAPTER CONTENT PAGE NO.


NO.
1 Chapter 4 Fig.4.1.1 EMA Charts 8

2 Fig.4.1.2 EMA Crossover 8

3 Fig.4.2 RSI Strategy 11

4 Fig.4.3 Supertrend Strategy 14

5 Chapter 5 Fig.5.1 Trading Algorithm 15

6 Fig.5.2 System Flowchart 16

7 Fig.5.3 Use case Diagram 17

8 Chapter 7 Fig.7.1 Automated Calls 21

9 Fig.7.2 Trading Alerts 21


Test Scenarios for the Sign-up page :
1) Verify the messages for each mandatory field.
2) Verify if the user cannot proceed without filling all the mandatory fields.
3) Verify the age of the user when the DOB is selected.
4) Verify if the numbers and special characters are not allowed in the First and Last name.
5) Verify if a user can sign-up successfully with all the mandatory details.
6) Verify if a user can log in with the valid details.
7) Verify if the Password and Confirm Password fields are accepting similar strings only.
8) Verify if the Password field will prompt you for the weak passwords.
9) Verify if duplicate email address will not get assigned.
10) Verify that hints are provided for each field on the form, for the ease of use.
List of table

SR.NO CHAPTER NO. CONTENT PAGE NO.

1 Chapter 4 Fig.4.1.1 EMA Charts 8

2 Fig.4.1.2 EMA Crossover 8

3 Fig.4.2 RSI Strategy 11

4 Fig.4.3 Supertrend Strategy 14

5 Chapter 5 Fig.5.1 Trading Algorithm 15

6 Fig.5.2 System Flowchart 16

7 Fig.5.3 Usecase Diagram 17

8 Chapter 7 Fig.7.1 Automated Calls 21

9 Fig.7.2 Trading Alerts 21


Screenshots :

1. Signup page :

2. Regex test
3. Registred user login :

4. Login :
5. Button Test :

6. See Report :
Test Result Report

TABLE OF CONTENTS

1.0 Introduction

2.0 Testing Strategy

2.1 Selenium Testing

2.2 Regular Expression Testing

3.0 Tools

4.0 Approvals
1.0 INTRODUCTION

Project Dynamic webside of covid-19 information using HTML, CSS, JAVASCRIPT


And PHP, MySQL database used to store user account, comment, and registration form
details.

2.0 TESTING STRATEGY

1. Functional testing
2. Selenium testing

Manual Testing
Automate
Approac Type of Using Using
d Testing Tools/APIs/Libraries
h Testing Devic Emulat
on Device
e Or

Standard Selenium No Yes No 1. Selenium

Testing Testing

(Functional

Testing)
2.1 Selenium Testing Report

EXECUTION STATUS COMPLETED/CANCELLED/PENDING

PASSED TESTCASES 7

FAILED TESTCASES 2

PENDING TERSTCASES 0

TEST CASES PLANNED 7

MODULES/ % TCs % TCs TCs


DESCRIPTION PRIORITY REMARKS
SCENARIOS EXECUTED PASSED PENDING

Validation units
INSERT 63 37 00 MODERATE -
related to insertion

Retrieval of records
VIEW 100 100 00 LOW -
from DB

Searching records in
SEARCH 100 100 00 MODERARTE -
DB

2.2 Regular Expression Testing

EXECUTION STATUS COMPLETED/CANCELLED/PENDING

PASSED TESTCASES 3

FAILED TESTCASES 1

PENDING TERSTCASES 0
TEST CASES PLANNED 2

MODULES/ % TCs % TCs TCs


DESCRIPTION PRIORITY REMARKS
SCENARIOS EXECUTED PASSED PENDING

Email Email Id must have 100 100 00 HIGH -


Validation @ symbol.

Phone No Phone no. must have 100 100 00 HIGH -


Validation 10 numbers.

Patients Slot Patient’s date must have 100 100 00 HIGH -


date validation next date from test
apply.
3.0 TOOLS

1. Selenium jar file / Selenium IDE


2. Eclipse IDE
3. Testing extension in eclipse
4. Covid information site on localhost / website

Conclusion :

Selenium is a cost-effective and flexible tool developers can use in the automation testing
of their web applications. The most intriguing feature of this software is the ability to test
applications across various web browsers. This ensures that websites do not crash or
breakdown in certain browsers.
The above are examples of using regular expression in web tests. Regular expressions will
be much more useful in API testing, where text-parsing is essential.

You might also like