Package

Source Code of SS_098_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;

//right click to delete sheet "Debt"
public class SS_098_Test extends SSAbstractTestCase {
  @Override
  protected void executeTest() {
    contextMenu(jq("@tab[label=\"Debt\"] span.z-tab-text"));       
    waitResponse();
    click(jq("$deleteSheet a.z-menu-item-cnt"));
    waitResponse();

    //verify
    Widget profitabilitySibling = widget(jq("@tab[label=\"Profitability\"]")).nextSibling();
    String content = jq(profitabilitySibling).find("span").text();   
    verifyEquals("Market", content);   
  }
}


TOP

Related Classes of SS_098_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.