Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment front end #66

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
7fbdd9a
Delete Appium_CrossPlatform directory
karimmahmoud22 Nov 9, 2022
178a18d
Delete Cypress_FE_BE directory
karimmahmoud22 Nov 9, 2022
559d44d
Delete JMeter_StressTesting directory
karimmahmoud22 Nov 9, 2022
dd39cf4
There are the following details of this commit:
karimmahmoud22 Nov 9, 2022
13db94e
extra files
karimmahmoud22 Nov 9, 2022
110a9b3
Add Analysis of the test cases for 1st time
karimmahmoud22 Nov 9, 2022
a2d0687
i have added page objects folder which include :
Samaa-Hazem2001 Nov 10, 2022
87f81ae
i have added test cases folder which include :
Samaa-Hazem2001 Nov 10, 2022
7cc5445
Upload the image which i used in my test case
Samaa-Hazem2001 Nov 11, 2022
dc4441b
example of Code style
karimmahmoud22 Nov 11, 2022
ec78767
Post Action test cases
Samaa-Hazem2001 Nov 11, 2022
b983a5e
Post action upgrade
Samaa-Hazem2001 Nov 11, 2022
034237c
add user post actions test cases header
Samaa-Hazem2001 Nov 11, 2022
38e5754
Added User post actions function logic
Samaa-Hazem2001 Nov 11, 2022
d8a8327
Delete cypress/videos directory
karimmahmoud22 Nov 12, 2022
85a940d
Delete cypress/screenshots directory
karimmahmoud22 Nov 12, 2022
bdb9fd6
Delete cypress/e2e/SWE_PROJECT directory
karimmahmoud22 Nov 12, 2022
ebb0e4c
These files are the progress of the second phase
karimmahmoud22 Nov 12, 2022
7c82f14
These files are videos of the second phase
karimmahmoud22 Nov 12, 2022
d347516
These files are screenshots of the second phase
karimmahmoud22 Nov 12, 2022
275ca6b
I have added page objects folders to :
Samaa-Hazem2001 Nov 12, 2022
a1b058d
I have added some test cases :
Samaa-Hazem2001 Nov 12, 2022
ca3a2c3
The report of test cases in phase 1
karimmahmoud22 Nov 12, 2022
3506a38
add create commuity tests
Samaa-Hazem2001 Dec 3, 2022
fff6336
add page objects to create community tests
Samaa-Hazem2001 Dec 3, 2022
1b46738
add env var
Dec 6, 2022
af6f729
adding deployment docker file
Waer1 Dec 6, 2022
409e7a5
Merge branch 'Front_End_Branch' of https://github.com/Reddit-Replica/…
Waer1 Dec 6, 2022
220a08b
adding deployment docker file
Waer1 Dec 6, 2022
93ac8c6
adding the testing pipeline
Waer1 Dec 6, 2022
9969c72
adding comments
Waer1 Dec 6, 2022
720be66
adding more indicators
Waer1 Dec 6, 2022
423b6c9
adding more indicators
Waer1 Dec 6, 2022
0c7a2cf
changing the absolute path to realtive
Waer1 Dec 6, 2022
2ed9965
edit base url
Waer1 Dec 6, 2022
87accee
remove videos from output
Waer1 Dec 6, 2022
967882d
disable video in cypress
Waer1 Dec 6, 2022
0a6ff4a
preventing video and limit cypress resources
Waer1 Dec 6, 2022
6264b20
filter login
Samaa-Hazem2001 Dec 13, 2022
fb02583
filter create post
Samaa-Hazem2001 Dec 13, 2022
9a76f87
Add files via upload
Samaa-Hazem2001 Dec 13, 2022
d0fdd5a
filter sign up
Samaa-Hazem2001 Dec 13, 2022
84f3a38
filtered : signup, login, create community
Samaa-Hazem2001 Dec 13, 2022
6cdfd75
change sign up objects
Samaa-Hazem2001 Dec 13, 2022
04bd1bd
change login objects
Samaa-Hazem2001 Dec 13, 2022
3a0b677
change create post objects
Samaa-Hazem2001 Dec 13, 2022
74658b3
update create post objects
Samaa-Hazem2001 Dec 13, 2022
9db9294
update objects of : sign up,login,createcommunity
Samaa-Hazem2001 Dec 13, 2022
3d2a176
Update README.md
karimmahmoud22 Feb 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Appium_CrossPlatform/Login/dummy.txt

This file was deleted.

Empty file.
Empty file removed Cypress_FE_BE/Login/dummy.txt
Empty file.
Empty file removed Cypress_FE_BE/SignUp/dummy.txt
Empty file.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM cypress/base:latest

WORKDIR /home/node/app

COPY cypress.config.js package.json package-lock.json ./

COPY cypress ./cypress

ENV CI=1

RUN npm i

RUN npx cypress verify
Empty file removed JMeter_StressTesting/dummy.txt
Empty file.
42 changes: 42 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
pipeline {
agent any
triggers {
githubPush()
}

environment {
DOCKERHUB_CREDENTIALS=credentials('Dockerhub')
}

stages{

stage('Login') {

steps {
sh 'echo $DOCKERHUB_CREDENTIALS_PSW | docker login -u $DOCKERHUB_CREDENTIALS_USR --password-stdin'
}
}

stage('Build') {

steps {
echo "hello"
sh 'docker build -t waer/web_testing:latest .'
}
}

stage('Push') {
steps {
sh 'docker push waer/web_testing:latest'
}
}

}

post {
always {
sh 'docker logout'
}
}

}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SW-Testing
repositry hold all testing file for Reddit-El8alaba Project
# Deployment-Testing
This branch for deployment only.
Binary file added Screenshot from 2022-11-09 04-38-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot from 2022-11-09 04-38-58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const { defineConfig } = require("cypress");

module.exports = defineConfig({
screenshotOnRunFailure: false,
video: false,
watchForFileChanges:false,
numTestsKeptInMemory:2,
projectId: 'hp3ona',
"env":{
// CYPRESSBASEURL:"http://frontend_test"
CYPRESSBASEURL:"http://www.read-it.live"
},
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
});
Loading