• Check that whether the application is compatible or not with the tools (Selenium).
• Develop POC(Proof of concept) – Automate 2 to 3 scenarios and present it to the client
• Execute or review all the test cases at least once to get the functional knowledge on the application and also to identify the test cases which are feasible for automation.
Continue reading What is automation strategy/ approach/ automation life cycle to automate one project ?
An object can be deleted from database in two ways :-
1.) By without reading it from database.
2.) By reading it from database.
To delete an object we only need to set the ID property. Comparatively Approach two is better than Approach one because, before deleting we can check an object whether exist in a database or not.
Continue reading To Deleting an Object in Hibernate ?
An object can be updated in two ways:-
1.) By without reading it from Database.
2.) By reading it from Database.
Continue reading To Updating an Object in Hibernate ?
Cache is a buffer/temporary memory allocated in RAM. Caching is a mechanism which reduces database interactions and improves the performance of an Application. In Hibernate a Cache is manage by two objects:-
– Session Object.
– SessionFactory Object.
Continue reading Session Level Cache or Level 1 Cache in Hibernate.
DefaultSelenium selenium = new DefaultSelenium(“localhost”,4444,”*firefox”,”http://”);
localhost – It is the machine name and selenium server should be configured in the specific machine
4444 – It’s selenium port number.
*firefox – Its is the command to launch firefox
http:// – Protocol to open URL
FileInputStream fileInput = new FileInputStream(“Path of the excel file”);
Workbook workBook = Workbook.getWorkbook(fileInput );
Sheet sheet = workBook.getSheet(0);
It will read the excel file upto the sheet.
To take the data from sheet, use below command
eg: sheet.getCell(0, 1).getContents();
Yes we have implemented data driven framework.
• From data driven onwards external files like excel text (notepad),database, xml etc.
• The external files are to take test data and to give the output results.
• It contains driver script which is responsible for executes. The driver script doesn’t contain any of the test cases and test data.
Continue reading Did you implement any framework In Testing?
A dialect class generates SQL commands internally for Hibernate, based on the database.
Hibernate has already provided predefined dialect classes for almost each databases. We can find the list of the databases supported by Hibernate and respective dialects in:-
While reading of an object from database, internally Hibernate creates an object of POJO class by calling default constructor.
If there is no default constructor in a class then its object can not be loaded from database.
if there are no getter() methods then problem occurs while performing save() operation. If there are no setter() methods then problems occurs in select/read operations. To execute all operations by without problems, we must define both setter() and getter() methods for each variable of the class. Because when we call save() method then hibernate internally calls getter() method to extract the values from POJO class object.