org.apache.jmeter.assertions.gui
Class XPathPanel
JPanel
org.apache.jmeter.assertions.gui.XPathPanel
public class XPathPanel
extends JPanel
XPathPanel
public XPathPanel()
XPathPanel
public XPathPanel(LayoutManager layout)
XPathPanel
public XPathPanel(LayoutManager layout,
boolean isDoubleBuffered)
layout
- isDoubleBuffered
-
XPathPanel
public XPathPanel(boolean isDoubleBuffered)
getCheckXPathButton
public JButton getCheckXPathButton()
Check XPath button
getNegatedCheckBox
public JCheckBox getNegatedCheckBox()
Negated chechbox
getXPath
public String getXPath()
Get the XPath String
getXPathTextField
public JTextField getXPathTextField()
isNegated
public boolean isNegated()
Does this negate the xpath results
isShowNegated
public boolean isShowNegated()
setDefaultValues
public void setDefaultValues()
setNegated
public void setNegated(boolean negated)
Set this to true, if you want success when the xpath does not match.
setShowNegated
public void setShowNegated(boolean showNegate)
showNegate
- The showNegate to set.
setXPath
public void setXPath(String xpath)
Set the string that will be used in the xpath evaluation
validXPath
public static boolean validXPath(String xpathString,
boolean showDialog)
Test weather an XPath is valid. It seems the Xalan has no easy way to
check, so this creates a test document, then tries to evaluate the xpath.
xpathString
- XPath String to validateshowDialog
- weather to show a dialog
- returns true if valid, valse otherwise.
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.