Skip to content

AlfrescoLabs/alfresco-ldtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alfresco LDTP

Introduction

We are pleased to introduce Alfresco LDTP library (IN Progress): a Java based automation suite that will enable GUI testing (Windows and MAC) of Alfresco desktop applications.

In our open source solution we used the following repositories:

Requirements

For MAC you will need:

  • OS X system with Xcode installed (tested on 10.9) If you experience any issues, please feel free to open a ticket in the issue tracker.
  • please also follow the Getting Started with Pyatom section from official page.

For Windows you will need:

LDTP Documentation

Please take a look on LDTP User Manual

Project Structure

Getting Started

  • Checkout the code and install all dependencies:
$ git clone https://github.com/AlfrescoTestAutomation/alfresco-ldtp
$ mvn clean install -DskipTests 
  • Run MAC OS X related tests:
$ mvn clean test -Dgroups=MacOnly -DexcludedGroups=Office

If you have Office 2011 installed on your MAC you can run the Office unit tests as well:

$ mvn clean test -Dtest=org.alfresco.os.mac.app.office.v2011.Excel2011Test

Usage

Please take a look on the unit tests already implemented for our classes. Bellow you will find also a snipet of how to create a simple folder as a End User will do in Finder:

import java.io.File;

import org.alfresco.os.mac.app.FinderExplorer;

public class TestFinder
{

    public static void main(String[] args)
    {
        FinderExplorer finder = new FinderExplorer();
        File testFolder = new File(finder.getApplicationPath(), "SampleFolder");

        finder.openApplication(); // this will open the Default /Documents folder of the current user

        // creating a new folder
        finder.createFolder(testFolder);

        // you can also specify other default startup path, or navigate to another folder
        finder.openFolder(testFolder);

        // go up one level
        finder.goToEnclosingFolder();

        // or delete the folder
        finder.deleteFolder(testFolder);
        
        finder.exitApplication();
    }
}

About

Alfresco GUI Automation Testing using LDTP(Linux Desktop Testing Project)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages