Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
ContextMenu[Test][TestAction] - test a context menu action
Calling Sequence
Test[TestAction](action, expr)
Parameters
action
-
list(string); action from context menu
expr
anything; expression that generates menu
Description
The Test[TestAction] command tests the result of executing the action specified by action in the context menu generated for the expression expr.
The parameter action, a list of strings, represents the sequence of nested menus that must be followed in the context-sensitive menu in order to select this action. For example, to simulate the selection of the first element of the list using context-sensitive menus, enter Test[TestAction](["Select Element", "1"], [1,2,3]).
The result returned by TestAction is a string, which represents the value that is returned to the worksheet if the action action is selected using context-sensitive menus.
Examples
See Also
ContextMenu, ContextMenu[Test], ContextMenu[Test][GetGeneratedMenu], ContextMenu[Test][ListMenuEntries]
Download Help Document