CABLE
CABLE
def menu():
print('1.YES')
print('2.NO')
while ch==1:
print('1.SIGN IN')
print('2.SIGN UP')
print('3.DELETE ACCOUNT')
print('4.EXIT')
if ch1==1:
a=checking()
if a==True:
print('WELCOME')
akhil()
else:
continue
elif ch1==2:
a=checking_1()
if a==True:
print('WELCOME')
akhil()
else:
continue
elif ch1==3:
c=checking_2()
if c==True:
print('ACCOUNT DELETED')
continue
else:
continue
elif ch==4:
print('THANK YOU')
break
else:
break
def akhil():
tabase="cable")
if conn.is_connected():
print("connected successfully")
c1=conn.cursor()
c1.execute('use cable')
print("1.ADD DETAILS")
print("2.MAINTAINANCE")
print("3.SUGGESTION")
print("4.EXIT")
choice=int(input("ENTER UR CHOICE:"))
if choice==1:
v_code=int(input("ENTER UR CODE_NO:"))
v_name=input("ENTER UR NAME:")
v_phone_no=int(input("ENTER UR PHONE_NO:"))
CENTER:"))
NAME):")
v_SQL_insert="insert into customer_profile
values("+str(v_code)+",'"+v_name+"',"+str(v_phone_no)
+","+str(v_year)+",'"+v_address+"')"
c1.execute(v_SQL_insert)
print("DETAILS ADDED")
conn.commit()
if choice==2:
v_code=int(input("ENTER UR CODE_NO:"))
v_name=input("ENTER UR NAME:")
v_fees=int(input("ENTER CHARGES:"))
values("+str(v_code)+",'"+v_name+"',"+str(v_fees)
+","+str(v_rating)+")"
c1.execute(v_SQL2_insert)
print("DETAILS ADDED")
conn.commit()
if choice==3:
v_code=int(input("ENTER CODE_NO:"))
v_name=input("ENTER UR NAME:")
values("+str(v_code)+",'"+v_name+"','"+v_suggestion+"')"
c1.execute(v_SQL3_insert)
print("DETAILS ADDED")
conn.commit()
if choice==4:
quit()
def checking_2():
import mysql.connector
mycon=mysql.connector.connect(host='localhost',user='root',passwd
='manager',database='cable')
cursor=mycon.cursor()
mycon.autocommit=True
a=input('USER NAME:')
b=input('PASS WORD:')
try:
password='{}'".format(b)
cursor.execute(s1)
data=cursor.fetchall()[0]
data=list(data)
if data[0]==a:
'{}'".format(b)
cursor.execute(b1)
return True
else:
return False
except:
def checking_1():
import mysql.connector
mycon=mysql.connector.connect(host='localhost',user='root',passwd
='manager',database='cable')
cursor=mycon.cursor()
mycon.autocommit=True
a=input('USER NAME:')
b=input('PASS WORD:')
if b==c:
try:
values('{}','{}')".format(a,b)
cursor.execute(c1)
print('WELCOME')
return True
except:
return False
else:
def checking():
import mysql.connector
mycon=mysql.connector.connect(host='localhost',user='root',passwd
='manager',database='cable')
cursor=mycon.cursor()
mycon.autocommit=True
a=input('USER NAME:')
b=input('PASS WORD:')
try:
password='{}'".format(b)
cursor.execute(s1)
data=cursor.fetchall()[0]
data=list(data)
if data[0]==a:
return True
else:
return False
except:
menu()
OUTPUT
TESTING
Software Testing is an empirical investigation conducted to provide stakeholders
with information about the quality of the product or service under test[1] , with respect to
the context in which it is intended to operate. Software Testing also provides an
objective, independent view of the software to allow the business to appreciate and
understand the risks at implementation of the software. Test techniques include, but are
not limited to, the process of executing a program or application with the intent of finding
software bugs.
It can also be stated as the process of validating and verifying that a software
program/application/product meets the business and technical requirements that guided
its design and development, so that it works as expected and can be implemented with
the same characteristics. Software Testing, depending on the testing method employed,
can be implemented at any time in the development process, however the most test
effort is employed after the requirements have been defined and coding process has
been completed.
TESTING METHODS
Software testing methods are traditionally divided into black box testing and white
box testing. These two approaches are used to describe the point of view that a test
engineer takes when designing test cases.
SPECIFICATION-BASED TESTING
The black box tester has no "bonds" with the code, and a tester's perception is
very simple: a code must have bugs. Using the principle, "Ask and you shall receive,"
black box testers find bugs where programmers don't. But, on the other hand, black box
testing has been said to be "like a walk in a dark labyrinth without a flashlight," because
the tester doesn't know how the software being tested was actually constructed.
That's why there are situations when (1) a black box tester writes many test
cases to check something that can be tested by only one test case, and/or (2) some
parts of the back end are not tested at all. Therefore, black box testing has the
advantage of "an unaffiliated opinion," on the one hand, and the disadvantage of "blind
exploring," on the other.
White box testing, by contrast to black box testing, is when the tester has access
to the internal data structures and algorithms (and the code that implement these)
White box testing methods can also be used to evaluate the completeness of a
test suite that was created with black box testing methods. This allows the software
team to examine parts of a system that are rarely tested and ensures that the most
important function points have been tested.
[Hard copy])
SOFTWARE REQUIREMENTS:
• Windows OS
• Python
• MySql
.
STEP 1: Open py file create table cable in the location : C:\Users\cadet\
Documents\CABLE CONNECTION SYSTEM
STEP 2: Run the file create table cable in python idle 3.7(64-bit)
('Table cable is created')
STEP 3:Open py file create table cable(use) in the location :C:\Users\cadet\
Documents\CABLE CONNECTION SYSTEM
STEP 4:Run the file create table cable (use) in python idle 3.7(64-bit)
('Table cable(use) is created')
STEP 5:Open py file create table cable(use)in the location :C:\Users\cadet\
Documents\ CABLE CONNECTION SYSTEM
STEP 6:Run the file create table cable(use) in python idle 3.7(64-bit)
('Table cable(use) is created')
STEP 7:Open py file billing procedure in the location :C:\Users\cadet\Documents\
CABLE CONNECTION SYSTEM
BIBLIOGRAPHY
• Computer science With Python - Class XI By : Sumita Arora
• A Project Report On CABLE MANAGEMENT SYSTEM (CMS)
By : CDT.E.AKHIL
• Website: https://www.w3resource.com
***************