This page is designed to access different elements of Web Page in Selenium
Link:Software Testing StuffsChandan | Singh | Chauhan |
1123 | 6473 | 6474 |
SQA | Usefull_things | Testing stuff |
Selenium test | Test1 | Test2 |
Free online Manual, Java, Selenium , API Testing tutorials for beginners
This page is designed to access different elements of Web Page in Selenium
Link:Software Testing StuffsChandan | Singh | Chauhan |
1123 | 6473 | 6474 |
SQA | Usefull_things | Testing stuff |
Selenium test | Test1 | Test2 |
SR | Objective | Steps | Test data | Expected | Actual | Status |
1 | Verify the age input box funct |
input the numeric value in Age |
0 to 18 | Message " You are not eligible |
||
Input the invalid numeric valu |
-1 | Message "Please enter valid da |
||||
Input the valid numeric value |
18-40 | green confirmation message sho |
||||
input the value in numeric to |
More than 40 | Message "You can not apply to |
SR | Objective | Steps | Test data | Expected | Actual | Status |
1 | Verify the age input box funct |
input the numeric value in Age |
-1 | Message "Please enter valid da |
||
Input the invalid numeric valu |
0 | Message " You are not eligible |
||||
Input the valid numeric value |
17 | Message " You are not eligible |
||||
input the value in numeric to |
18 | green confirmation message sho |
||||
input the numeric value in Age |
19 | green confirmation message sho |
||||
input the numeric value in Age |
40 | green confirmation message sho |
||||
input the numeric value in Age |
41 | Message "You can not apply to |
A Test plan is a document which is very similar to project plan but mainly focusing on testing which would be done.
It have the various section inside it, which explain how, when & what should be tested in a particular project.
It varies from organization to organization & project to Project.
4. Retesting : Generally build number will not change, just build with fixed bugs will be deployed on testing server.
Regression : Build number should be changed, build which passed many testing rounds have some enhancement/modification is deployed on testing environment.
5. Retesting : only failed test cases are executed.
Regression : Test cases are fetched from main test cases which are effected due to bug, and enhanced due to bug and they are joined in an effective manner to make a robust regression suite after that they are executed.
CREATE TABLE CUSTOMERS(
ID INT NOT NULL,
NAME VARCHAR (20) NOT NULL,
AGE INT NOT NULL,
ADDRESS CHAR (25) ,
SALARY DECIMAL (18, 2),
PRIMARY KEY (ID)
);
For example : CREATE TABLE Persons
(
P_Id int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
UNIQUE (P_Id)
)
You can only have one primary key per table, but multiple unique constraints (249, I believe).
2.
A PK can not have a NULL value - if you try to make a NULLABlE column as your PK, SQL Server will change it to NOT NULL first, and then create the PK. A Unique constraint can have one NULL value.
Create Database database_Name
Create Table database_name.table_name
(Column_name data_type,
Column_name data_type,
Column_name data_type
)
Emp_id | Emp_name | Emp_reg | Emp_salary |
---|---|---|---|
01 | chandan | E_01 | 25000 |
02 | adhiraj | E_02 | 30000 |
03 | raghu | E_03 | 35000 |
04 | Alax | E_04 | 40000 |
Used to sort records, and by default it will sort records in AESC order
Emp_id | Emp_name | Emp_reg | Emp_salary |
---|---|---|---|
01 | chandan | E_01 | 25000 |
02 | adhiraj | E_02 | 30000 |
03 | raghu | E_03 | 35000 |
04 | Alax | E_04 | 40000 |
Suppose you need to find the Emp_name which have Emp_reg = "R01" & Emp_id = 1
Select Emp_name, Emp_salary from Salary ORDERY BY Emp_salary RESULT:Emp_name | Emp_salary |
---|---|
chandan | 25000 |
adhiraj | 30000 |
raghu | 35000 |
Alax | 40000 |
Consider above table again & suppose you need to short the record in desc order
Emp_name | Emp_salary |
---|---|
Alax | 40000 |
raghu | 35000 |
adhiraj | 30000 |
chandan | 25000 |
update keyword used to update the record in the table.
Syntax : UPDATE table_name Set column@ = value@, column$ = value$ Where column1 = value1 Example : Consider the following table Table Salary:Emp_id | Emp_name | Emp_reg | Emp_salary |
---|---|---|---|
01 | chandan | E_01 | 25000 |
02 | adhiraj | E_02 | 30000 |
03 | raghu | E_03 | 35000 |
04 | Alax | E_04 | 40000 |
Suppose you need to update the salary of Adhiraj then
Update salary Set Emp_salary = 32000 Where Emp_name = "adhiraj" Note :Where clause is used to specify that which record in the table should be updated and if it is not used then all the record will be updated. Result:Emp_id | Emp_name | Emp_reg | Emp_salary |
---|---|---|---|
01 | chandan | E_01 | 25000 |
02 | adhiraj | E_02 | 32000 |
03 | raghu | E_03 | 35000 |
04 | Alax | E_04 | 40000 |
To fetch the result without using complete string. Better will be understood with below examples :
Example : Consider the following table Table: SalaryEmp_id | Emp_name | Emp_reg | Emp_salary |
---|---|---|---|
01 | chandan | E_01 | 25000 |
02 | adhiraj | E_02 | 30000 |
03 | raghu | E_03 | 35000 |
04 | raghunath | E_04 | 36000 |
05 | Alax | E_04 | 40000 |
Select * from Salary where Emp_name like "%ndan"
Result: Records starting from any character but followed by 'ndan' will appear Table: SalaryEmp_id | Emp_name | Emp_reg | Emp_salary |
---|---|---|---|
01 | chandan | E_01 | 25000 |
Select * from Salary where Emp_name like "ra%"
Result: All the records staring from 'ra' character will appear Table: SalaryEmp_id | Emp_name | Emp_reg | Emp_salary |
---|---|---|---|
03 | raghu | E_03 | 35000 |
04 | raghunath | E_04 | 36000 |
Select * from Salary where Emp_name like "-raj"
Result: Table: SalaryEmp_id | Emp_name | Emp_reg | Emp_salary |
---|---|---|---|
02 | adhiraj | E_02 | 30000 |
05 | Alax | E_04 | 40000 |
Select * from Salary where Emp_name like "[a-c]%"
Result: Records starting from from any 'a, b, c' charcater will appear. Table: SalaryEmp_id | Emp_name | Emp_reg | Emp_salary |
---|---|---|---|
01 | chandan | E_01 | 25000 |
02 | adhiraj | E_02 | 30000 |
05 | Alax | E_04 | 40000 |
Select * from Salary where Emp_name = "[!ar]%"
Result: All the records starting from letter a, r will NOTappear Table: SalaryEmp_id | Emp_name | Emp_reg | Emp_salary |
---|---|---|---|
01 | chandan | E_01 | 25000 |
Syntax :
Alter Table Table_name
ADD column_name datatype
Example : Consider the following table
Table: Salary
Emp_id | Emp_name | Emp_reg | Emp_salary |
---|---|---|---|
01 | chandan | E_01 | 25000 |
02 | adhiraj | E_02 | 30000 |
03 | raghu | E_03 | 35000 |
04 | raghunath | E_04 | 36000 |
05 | Alax | E_05 | 40000 |
Emp_id | Emp_name | Emp_reg | Emp_salary | city |
---|---|---|---|---|
01 | chandan | E_01 | 25000 | Null |
02 | adhiraj | E_02 | 30000 | Null |
03 | raghu | E_03 | 35000 | Null |
04 | raghunath | E_04 | 36000 | Null |
05 | Alax | E_05 | 40000 | Null |
Emp_id | Emp_name | Emp_reg | Emp_salary | city |
---|---|---|---|---|
01 | chandan | E_01 | 25000 | Noida |
02 | adhiraj | E_02 | 30000 | noida |
03 | raghu | E_03 | 35000 | Noida |
04 | raghunath | E_04 | 36000 | Noida |
05 | Alax | E_05 | 40000 | Noida |
Select column_name, column_name from table_name Where column_name IN("value1","value2", "Value3")
Only records which are matching under IN condition will appear
Emp_id | Emp_name | Emp_reg | Emp_salary | city |
---|---|---|---|---|
02 | adhiraj | E_02 | 30000 | noida |
Select column_name, column_name from table_name Where column_name between "value1" and "value2"
All the records which are matching within BETWEEN condition will appear
Emp_id | Emp_name | Emp_reg | Emp_salary | city |
---|---|---|---|---|
01 | chandan | E_01 | 25000 | Noida |
02 | adhiraj | E_02 | 30000 | noida |
Emp_id | Emp_salary | Emp_desig |
---|---|---|
01 | 25000 | Software Eng |
02 | 30000 | Senior Software Eng |
03 | 25000 | Software Analyst |
Emp_id | Emp_salary | Emp_heading |
---|---|---|
02 | 30000 | Senior Software Eng |
03 | 25000 | Software Analyst |
Emp_id | Emp_salary | Emp_heading |
---|
Emp_id | Emp_Salary |
---|---|
01 | 25000 |
02 | 30000 |
03 | 35000 |
Emp_Salary |
---|
30000 |
Emp_Salary |
---|
30000 |
Emp_id | Emp_Salary |
---|---|
01 | 25000 |
02 | 30000 |
03 | 35000 |
Emp_Salary |
---|
25000 |
Emp_Salary |
---|
25000 |
Select Column_Name1,Column_Name2
from Table1
Inner join Table2
On table1.column_name = table2.column_name
Emp_id | Emp_salary | Emp_desig |
---|---|---|
01 | 25000 | Software Eng |
02 | 30000 | Senior Software Eng |
03 | 25000 | Software Analyst |
Emp_id | Emp_city | Emp_gender |
---|---|---|
01 | Pune | Male |
02 | Delhi | Female |
03 | Noida | Male |
04 | Gurgaon | Female |
Emp_id | Emp_salary | Emp_desig | Emp_id | Emp_city | Emp_gender |
---|---|---|---|---|---|
01 | 25000 | Software Eng | 01 | Pune | Male |
02 | 30000 | Senior Software Eng | 02 | Delhi | Female |
03 | 25000 | Software Analyst | 03 | Noida | Male |
Select Column_Name1,Column_Name2
from Table1
Left join Table2
On table1.column_name = table2.column_name
Emp_id | Emp_salary | Emp_desig |
---|---|---|
01 | 25000 | Software Eng |
02 | 30000 | Senior Software Eng |
03 | 25000 | Software Analyst |
Emp_id | Emp_city | Emp_gender |
---|---|---|
01 | Pune | Male |
02 | Delhi | Female |
Emp_id | Emp_salary | Emp_desig | Emp_id | Emp_city | Emp_gender |
---|---|---|---|---|---|
01 | 25000 | Software Eng | 01 | Pune | Male |
02 | 30000 | Senior Software Eng | 02 | Delhi | Female |
03 | 25000 | Software Analyst | NULL | NULL | NULL |
Select Column_Name1,Column_Name2
from Table1
Right join Table2
On table1.column_name = table2.column_name
Emp_id | Emp_salary | Emp_desig |
---|---|---|
01 | 25000 | Software Eng |
02 | 30000 | Senior Software Eng |
03 | 25000 | Software Analyst |
Emp_id | Emp_city | Emp_gender |
---|---|---|
01 | Pune | Male |
02 | Delhi | Female |
03 | Noida | Female |
04 | Gurgaon | Male |
Emp_id | Emp_salary | Emp_desig | Emp_id | Emp_city | Emp_gender |
---|---|---|---|---|---|
01 | 25000 | Software Eng | 01 | Pune | Male |
02 | 30000 | Senior Software Eng | 02 | Delhi | Female |
03 | 25000 | Software Analyst | 03 | Noida | Female |
Null | Null | Null | 04 | Gurgaon | Male |
Select Column_Name1,Column_Name2
from Table1 as A
Inner join Table2 as B
On A.column_name = B.column_name
Emp_id | Emp_salary | Emp_desig |
---|---|---|
01 | 25000 | Software Eng |
02 | 30000 | Senior Software Eng |
03 | 25000 | Software Analyst |
select *
from salary as a
inner join salary as b
on a.Emp_id = b.Emp_id
Emp_id | Emp_salary | Emp_desig | Emp_id | Emp_salary | Emp_desig |
---|---|---|---|---|---|
01 | 25000 | Software Eng | 01 | 25000 | Software Eng |
02 | 30000 | Senior Software Eng | 02 | 30000 | Senior Software Eng |
03 | 25000 | Software Analyst | 03 | 25000 | Software Analyst |
Select Column_Name1,Column_Name2
from Table1
Full outer join Table2
On Table1.column_name = Table2.column_name
Emp_id | Emp_salary | Emp_desig |
---|---|---|
01 | 25000 | Software Eng |
02 | 30000 | Senior Software Eng |
03 | 25000 | Software Analyst |
05 | 35000 | Software lead |
Emp_id | Emp_city | Emp_gender |
---|---|---|
01 | Pune | Male |
02 | Delhi | Female |
03 | Noida | Male |
04 | Gurgaon | Female |
select *
from salary as a
inner join salary as b
on a.Emp_id = b.Emp_id
Emp_id | Emp_salary | Emp_desig | Emp_id | Emp_city | Emp_gender |
---|---|---|---|---|---|
01 | 25000 | Software Eng | 01 | Pune | Male |
02 | 30000 | Senior Software Eng | 02 | Delhi | Female |
03 | 25000 | Software Analyst | 03 | Noida | Male |
Null | Null | Null | 04 | Gurgaon | Female |
05 | 35000 | Software lead | Null | Null | Null |
Select table1.Column_Name1,table2.Column_Name1
from Table1
Cross join Table2
Emp_id | Emp_salary | Emp_desig |
---|---|---|
01 | 25000 | Software Eng |
02 | 30000 | Senior Software Eng |
03 | 25000 | Software Analyst |
Emp_id | Emp_city | Emp_lastname |
---|---|---|
01 | noida | chauhan |
02 | gurgaon | singh |
select *
from salary
cross join Employee_record
Emp_id | Emp_salary | Emp_desig | Emp_id | Emp_city | Emp_lastname |
---|---|---|---|---|---|
01 | 25000 | Software Eng | 01 | noida | chauhan |
01 | 25000 | Software Eng | 02 | gurgaon | singh |
02 | 30000 | Senior Software Eng | 01 | noida | chauhan |
02 | 30000 | Senior Software Eng | 02 | gurgaon | singh |
03 | 25000 | Software Analyst | 01 | noida | chauhan |
03 | 25000 | Software Analyst | 02 | gurgaon | singh |
Select table1.Column_Name1,table1.Column_Name2
from Table1
UNION
select table2.Column_Name1, table2.column_name2
from Table2
Emp_id | Emp_salary | Emp_name |
---|---|---|
01 | 25000 | Chandan |
02 | 30000 | Adhiraj |
03 | 25000 | Akshat |
Emp_id | Emp_city | Emp_name |
---|---|---|
201 | noida | Sara |
202 | gurgaon | fatima |
select Emp_id, Emp_name
from salary
UNION
select Emp_id, Emp_name
from designation
Emp_id | Emp_name |
---|---|
01 | Chandan |
02 | Adhiraj |
03 | Akshat |
201 | Sara |
202 | Fatima |
Select table1.Column_Name1,table1.Column_Name2
from Table1
Intersection
select table2.Column_Name1, table2.column_name2
from Table2
Emp_id | Emp_salary | Emp_name |
---|---|---|
01 | 25000 | Chandan |
02 | 30000 | Adhiraj |
03 | 25000 | Akshat |
Emp_id | Emp_city | Emp_name |
---|---|---|
01 | noida | chandan |
04 | gurgaon | fatima |
select Emp_id, Emp_name
from salary
INTERSECT
select Emp_id, Emp_name
from designation
Emp_id | Emp_name |
---|---|
01 | Chandan |
Select table1.Column_Name1,table1.Column_Name2
from Table1 as a
Inner Join Table2 as b
On a.column_name = b.column_name
Inner Join Table3 as c
On b.column_name = c.column_name
Emp_id | Emp_salary | Emp_name |
---|---|---|
01 | 25000 | Chandan |
02 | 30000 | Adhiraj |
03 | 25000 | Akshat |
Emp_id | Emp_city | Emp_name |
---|---|---|
201 | noida | Sara |
202 | gurgaon | fatima |
Emp_id | Emp_lastname |
---|---|
201 | Chauhan |
202 | Singh |
select *
from salary as a
Inner Join Employee_record as b
On a.Emp_id = b.Emp_id
Inner Join Employee_details as c
on b.Emp_id = c.Emp_id
Emp_id | Emp_salary | Emp_name | Emp_id | Emp_city | Emp_name | Emp_id | Emp_lastname |
---|---|---|---|---|---|---|---|
01 | 25000 | Chandan | 201 | noida | Sara | 201 | Chauhan |
02 | 30000 | Adhiraj | 202 | gurgaon | fatima | 202 | Singh |
Now() |
---|
2016-03-25 23:28:11 |
No Column |
---|
2016-03-25 23:28:11 |
Emp_id | Emp_salary | Emp_name |
---|---|---|
01 | 25000 | Chandan |
02 | 30000 | Adhiraj |
03 | 25000 | Akshat |
Emp_id |
---|
3 |
The GROUP BY clause will gather all of the rows together that contain data in the specified
column(s) and will allow aggregate functions to be performed on the one or more columns.
Aggregate functions are like SUM,COUNT,MIN,MAX and AVG.
Consider the folowing table of Appriasal
Emp_id | Amount |
---|---|
E01 | 2000 |
E02 | 4000 |
E03 | 5000 |
E02 | 6000 |
E01 | 2000 |
Emp_id | Amount |
---|---|
E01 | 4000 |
E02 | 10000 |
E03 | 5000 |
Group functions cannot be used in where.To restrict row by group function having clause is used.
Example :Consider the folowing table of Appriasal
Emp_id | Amount |
---|---|
E01 | 2000 |
E02 | 4000 |
E03 | 5000 |
E02 | 6000 |
E01 | 2000 |
Emp_id | Amount |
---|---|
E02 | 10000 |