Package

Source Code of SS_099_Test

/* order_test_1Test.java

  Purpose:
   
  Description:
   
  History:
    Sep, 7, 2010 17:30:59 PM

Copyright (C) 2010 Potix Corporation. All Rights Reserved.

This program is distributed under Apache License Version 2.0 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
*/

import org.junit.Test;
import org.zkoss.ztl.Element;
import org.zkoss.ztl.JQuery;
import org.zkoss.ztl.Tags;
import org.zkoss.ztl.Widget;
import org.zkoss.ztl.ZK;
import org.zkoss.ztl.ZKClientTestCase;

import com.thoughtworks.selenium.Selenium;

//rename sheet "Market" to "my Sheet"
public class SS_099_Test extends SSAbstractTestCase {
 
  @Override
  protected void executeTest() {
    contextMenu(jq("@tab[label=\"Market\"] span.z-tab-text"));       
    waitResponse();
    click(jq("$renameSheet  a.z-menu-item-cnt"));
    waitResponse();
    type(jq("$sheetNameTB"), "my Sheet");
    waitResponse();
    click(jq("$confirmRenameBtn td.z-button-cm"));
    waitResponse();
   
    //verify
    Widget debtSibling = widget(jq("@tab[label=\"Debt\"]")).nextSibling();
    String content = jq(debtSibling).find("span").text();   
    verifyEquals("my Sheet", content);   
  }
}


TOP

Related Classes of SS_099_Test

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.