Test oracles are mostly written manually by the user once test data are generated. This is because of the fact that each bug requires a different input and different data. This is a very difficult and time consuming task as the tester must produce quick and meaningful test cases for testing. However, the major problem of this approach is that they can cover only one goal at a time. They are dependent on one another and sometimes are not replicable. This paper presents a new approach by which test oracles are generated automatically by the usage of evolutionary algorithm. This method has successfully allowed bug identification in thousands of classes and it is quick to use.