Fakultas Ilmu Komputer UI

Commit 920b3e46 authored by jordan's avatar jordan
Browse files

[RED] implement navigation testing

parent 1ceb9e07
No preview for this file type
migrate: bash deployment.sh
web: gunicorn superlists.wsgi --log-file - web: gunicorn superlists.wsgi --log-file -
\ No newline at end of file
#!/bin/bash
python manage.py makemigrations
python manage.py migrate
...@@ -19,3 +19,5 @@ class HeaderAndFooter(FunctionalTest): ...@@ -19,3 +19,5 @@ class HeaderAndFooter(FunctionalTest):
# Nama mahasiswa tersebut adalah Jordan Muhammad Andrianda, # Nama mahasiswa tersebut adalah Jordan Muhammad Andrianda,
# sehingga di footer terdapat nama tersebut. # sehingga di footer terdapat nama tersebut.
self.assertIn("Copyright Jordan Muhammad Andrianda", footer_1) self.assertIn("Copyright Jordan Muhammad Andrianda", footer_1)
#Pengecekan Tugas Akhir Programming No 1 sudah diselesaikan
from .base import FunctionalTest
class Navigation(FunctionalTest):
def test_navigation(self):
# Masuk halaman to do list
self.browser.get(self.live_server_url)
# Terdapat navigation bar yang berisi informasi yang diperuntukan untuk PMPL Fasilkom UI app to do list
navbar_1 = self.browser.find_element_by_id("navbar_1").text
# Informasi tersebut adalah Dibuat untuk menyelesaikan Tugas Ujian Akhir Penjaminan Mutu Perangkat Lunak 2019, yang ditampilkan di halaman webb
self.assertIn("Dibuat untuk menyelesaikan Tugas Ujian Akhir Penjaminan Mutu Perangkat Lunak 2019", navbar_1)
# engecekan Tugas Akhir Programming No 2 sudah diselesaikan
...@@ -4,9 +4,39 @@ ...@@ -4,9 +4,39 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen"> <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/static/base.css" rel="stylesheet" media="screen"> <link href="/static/base.css" rel="stylesheet" media="screen">
<style>
.headerBar{
overflow: hidden;
background-color: #290653;
top: 0;
width: 100%;
}
.footerBar{
text-align:center;
background-color: #290653;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
}
a{
display: block;
color: #f2f2f2;
text-align:center;
font: 10px;
padding: 14px 16px;
text-decoration: none;
}
</style>
</head> </head>
<header style="margin:0 auto;"> <h3 id="header_1">Jordan Muhammad Andrianda To Do list App</h3></header> <header>
<div class="headerBar">
<a id="header_1">Jordan Muhammad Andrianda To Do list App</a>
</div>
</header>
<body> <body>
<div class="container"> <div class="container">
<nav class="navbar navbar-default" role="navigation"> <nav class="navbar navbar-default" role="navigation">
<div class="container-fluid"> <div class="container-fluid">
...@@ -65,6 +95,11 @@ ...@@ -65,6 +95,11 @@
</div> </div>
</div> </div>
</body> </body>
<footer style="margin:0 auto;"><h3 id="footer_1">Copyright Jordan Muhammad Andriandaa</h3></footer> <footer>
<div class="footerBar">
<a id="footer_1">Copyright Jordan Muhammad Andrianda</a>
</div>
</footer>
</html> </html>
...@@ -4,6 +4,15 @@ ...@@ -4,6 +4,15 @@
### Jordan Muhammad Andrianda <br> 1506722765 <br> This is Practice Repository PMPL Course ### Jordan Muhammad Andrianda <br> 1506722765 <br> This is Practice Repository PMPL Course
## Link Heroku
jordan-pmpl.herokuapp.com
## pipeline and code coverage
[![pipeline status](https://gitlab.cs.ui.ac.id/pmpl/practice-collection/2019/1506722765-practice/badges/master/pipeline.svg)](https://gitlab.cs.ui.ac.id/pmpl/practice-collection/2019/1506722765-practice/commits/master)
[![coverage report](https://gitlab.cs.ui.ac.id/pmpl/practice-collection/2019/1506722765-practice/badges/master/coverage.svg)](https://gitlab.cs.ui.ac.id/pmpl/practice-collection/2019/1506722765-practice/commits/master)
## Cerita Latihan 9 Mengapa implementasi Functional Test untuk fitur login lebih baik menggunakan implementasi subbab 20.1 ## Cerita Latihan 9 Mengapa implementasi Functional Test untuk fitur login lebih baik menggunakan implementasi subbab 20.1
......
...@@ -132,7 +132,7 @@ import dj_database_url ...@@ -132,7 +132,7 @@ import dj_database_url
prod_db = dj_database_url.config(conn_max_age=500) prod_db = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(prod_db) DATABASES['default'].update(prod_db)
ALLOWED_HOSTS = ['jordan-pmpl.herokuapp.com'] ALLOWED_HOSTS = ['jordan-pmpl.herokuapp.com', 'localhost']
EMAIL_HOST = "smtp.gmail.com" EMAIL_HOST = "smtp.gmail.com"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment