Class ParseCurlCommandAction
java.lang.Object
org.apache.jmeter.gui.action.AbstractAction
org.apache.jmeter.protocol.http.gui.action.ParseCurlCommandAction
- All Implemented Interfaces:
ActionListener,EventListener,Command,MenuCreator
@AutoService({Command.class,MenuCreator.class})
public class ParseCurlCommandAction
extends AbstractAction
implements MenuCreator, ActionListener
Opens a popup where user can enter a cURL command line and create a test plan
from it
- Since:
- 5.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.gui.plugin.MenuCreator
MenuCreator.MENU_LOCATION -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateCommentText(BasicCurlParser.Request request) voidMenuItems to be added in location menuJMenu[]voidUpdate Top Level menu on Locale ChangebooleanlocaleChanged(MenuElement menu) parseCommands(boolean isReadFromFile, List<String> commandsList) readFromFile(String pathname) readFromTextPanel(String commands) Methods inherited from class org.apache.jmeter.gui.action.AbstractAction
getParentFrame, popupCheckExistingFileListener, popupShouldSave
-
Field Details
-
IMPORT_CURL
- See Also:
-
-
Constructor Details
-
ParseCurlCommandAction
public ParseCurlCommandAction()
-
-
Method Details
-
doAction
- Specified by:
doActionin interfaceCommand- Overrides:
doActionin classAbstractAction- See Also:
-
getMenuItemsAtLocation
Description copied from interface:MenuCreatorMenuItems to be added in location menu- Specified by:
getMenuItemsAtLocationin interfaceMenuCreator- Parameters:
location- in top menu- Returns:
- array of
JMenuItem
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
parseCommands
public List<BasicCurlParser.Request> parseCommands(boolean isReadFromFile, List<String> commandsList) -
getActionNames
- Specified by:
getActionNamesin interfaceCommand
-
getTopLevelMenus
- Specified by:
getTopLevelMenusin interfaceMenuCreator- Returns:
- array of JMenu to be put as top level menu between Options and Help
-
localeChanged
- Specified by:
localeChangedin interfaceMenuCreator- Parameters:
menu- MenuElement- Returns:
- true if menu was concerned by Locale change
-
localeChanged
public void localeChanged()Description copied from interface:MenuCreatorUpdate Top Level menu on Locale Change- Specified by:
localeChangedin interfaceMenuCreator
-
readFromFile
- Throws:
IOException
-
readFromTextPanel
-
createCommentText
-