Alfresco basic functionality automation test-scripts using Selenium web-driver.
Selenium Web-driver is a tool developed to write automation scripts to test websites. Web-driver was first introduced in Selenium 2.0. The main feature of Web-driver is that it is able to drive a web browser by interacting with the HTML similar to how a user would handle it. Currently Selenium-WebDriver is fully implemented and supported in Python, Ruby, Java and C#.
1- Login and Logout 2- Creating, deleting and editing a user. 3- Customising the dashboards. 4- Inviting internal and external user. 5- Creating user group. 6- Uploading, deleting and viewing documents. 7- Manage document permissions. 8- Checking the functionality of site searching.
1- Install Java 1.7 2- Install Maven 3- Download the alfresco-test-scripts to your local computer 4- Update pom.xml(alfresco-test-scripts/ABFT_4_2/pom.xml) with the latest selenium-java version Can find the latest version information here - http://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java org.seleniumhq.selenium selenium-java 2.433.1 5- Update pom.xml(alfresco-test-scripts/ABFT_4_2/pom.xml) with the latest Junit version Can find the latest version information here - http://mvnrepository.com/artifact/junit/junit junit junit 4.11 6- Start Alfresco server locally 7- All the test cases related test data(test values) you can set it in the TestValues.xml file. Location - alfresco-test-scripts/ABFT_4_2/src/test/resources/TestValues.xml 8- Set Alfresco server URL Go to alfresco-test-scripts/ABFT_4_2/src/test/resources/TestProperties.xml And add the correct server URL http://localhost:8080/share/page/ 9- Set Alfresco Admin username and password Go to alfresco-test-scripts/ABFT_4_2/src/test/resources/TestProperties.xml admin admin 10- Make sure that the document that you will be using for Upload Test Case is available in your computer and Finder Window has List/Icon View (NOT Column View) Go to alfresco-test-scripts/ABFT_4_2/src/test/resources/TestValues.xml Test Site 5 test-site-5 AbftsUploadTest.txt test 11- Go to alfresco-test-scripts/ABFT_4_2 via terminal 12- Please type "mvn test" to build and run the test cases
Alfresco basic functionality automation test-scripts fully tested on 1- Alfresco 4.2.0 server 2- Firefox browser 3- Mac OS