@@ -0,0 +1,2269 @@
+/*%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements.  See the NOTICE file%0A * distributed with this work for additional information%0A * regarding copyright ownership.  The ASF licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License.  You may obtain a copy of the License at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A */%0Apackage org.syncope.console;%0A%0Aimport org.junit.Test;%0A%0Apublic class ReportTestITCase extends AbstractTest %7B%0A%0A    @Test%0A    public void readReportlet() %7B%0A        selenium.click(%22css=img%5Balt=%5C%22Reports%5C%22%5D%22);%0A        selenium.waitForCondition(%22selenium.isElementPresent(%5C%22//div%5B@id='tabs'%5D%5C%22);%22, %2230000%22);%0A%0A        selenium.click(%22//table/tbody/tr/td%5B6%5D/span/span%5B7%5D/a%22);%0A        selenium.waitForCondition(%22selenium.isElementPresent(%22%0A                + %22%5C%22//form/div%5B2%5D/div/div/span/div/div%5B5%5D/div%5B2%5D/span/div%5B2%5D/div/a%5C%22);%22, %2230000%22);%0A%0A        selenium.click(%22css=img%5Balt=%5C%22plus icon%5C%22%5D%22);%0A        selenium.waitForCondition(%22selenium.isElementPresent(%22%0A                + %22%5C%22//form/div%5B2%5D/div/div/div%5B2%5D/div%5B2%5D/span/select%5C%22);%22, %2230000%22);%0A%0A        selenium.select(%22//form/div%5B2%5D/div/div/div%5B2%5D/div%5B2%5D/span/select%22,%0A                %22label=org.syncope.client.report.UserReportletConf%22);%0A        selenium.waitForCondition(%22selenium.isElementPresent(%5C%22//form/div%5B2%5D/div%5B2%5D/div/span/div/div/span%5C%22)%22, %2230000%22);%0A%0A        selenium.click(%22css=a.w_close%22);%0A        selenium.click(%22css=a.w_close%22);%0A    %7D%0A%0A    @Test%0A    public void execute() %7B%0A        selenium.click(%22css=img%5Balt=%5C%22Reports%5C%22%5D%22);%0A%0A        selenium.waitForCondition(%22selenium.isElementPresent(%5C%22//div%5B@id='tabs'%5D%5C%22);%22, %2230000%22);%0A%0A        selenium.click(%22//table/tbody/tr/td%5B6%5D/span/span%5B3%5D/a%22);%0A%0A        selenium.waitForCondition(%22selenium.isTextPresent(%5C%22Operation executed successfully%5C%22);%22, %2230000%22);%0A    %7D%0A%7D%0A

Test cases added to selenium profile