Showing posts with label MethodCompiler. Show all posts
Showing posts with label MethodCompiler. Show all posts

Tuesday, July 26, 2016

Clone an Existing EIM using MethodTool

  1. Load the EIM to be cloned
    • Set MethodTool>Edit>Test Methods>External Interface
    • Click "External Interface" button and "Find enVision Object" dialog box will appear and shows a list of ExternalInterface to choose. 
    • Select The ExternalInterface to clone and press OK.
    • The text box beside "ExternalInterface" button now displays the name of the EIM you selected
    • The "Method Directory" now displays the path of the source code for the loaded EIM
    • All the member functions and variables defined or added into this EIM are also displayed 
  2. Clone the loaded EIM 
    • Set MethodTool>File>Clone...
    • in "Select Clone Directory" popup
      • set name of cloned EIM in text box beside "ExternalInterface"
      • set directory where the cloned EIM will be stored in text box beside "Method Directory:"
        • make sure to specify the folder where the source code and binaries will be stored
      • Click OK 
        • If a new folder is specified, it will be created 
        • mid, tmk, cxx, and hxx files will be created and are copies of the EIM that is cloned
        • the newly created cloned EIM is automatically compiled and DNT/FX1 folder with evso is created after successful build 
  3. Update sources
    • You can now make changes to the source code of the clone EIM

    Friday, July 15, 2016

    EIM FAQ

    • MethodCompiler location
      • Solaris 8 Sun OS: /opt/ltx/bin/, /opt/ltx/releases/<release>/DNT/customer/bin
      • CentOS 4.6: /opt/ltx/releases/<release>/i686*/bin
    • Default EIM source code location
      • enVision (Solaris): /opt/ltx/releases/<version>/customer/test_methods/
      • enVision (CentOS 4.6): 
    • Custom EIM binary location (where the compiled "evso" file is to be placed)
      • enVision (Solaris): 
        • /opt/ltx/releases/<version>/customer/custom_methods/DNT
        • /opt/ltx/releases/<version>/customer/custom_methods/FX1
        • DNT for CX testers while FX1 for FX testers but need to confirm this 
      • enVision (CentOS 4.6): 
        • /opt/ltx/releases/<version>/i686*/custom_methods/DNT
        • /opt/ltx/releases/<version>/i686*/custom_methods/FX1
        • DNT for CX testers while FX1 for FX testers 
    • Command to compile EIM source code
      • >MethodCompiler -t DNT/FX1 -f <file>.tmk
        • Note: Some systems required you to set the full path of MethodCompiler command. 
        • Specify either DNT for DX systems,  or FX1 for X-series systems
    • Do's in Developing EIM 
    • Don'ts in Developing EIMl
    • How to Properly load an EIM into MethodTool
      • enVision only loads EIM's (evso files) that are located in default EIM source code location and custom EIM binary locations.
      • If you have an EIM source code and wishes to load it into MethodTool, follow this:
        • open OpTool>MethodTool
        • in OpTool>MethodTool>Method Directory:, specify the path where your EIM source code is located (cxx, hxx, mid, makefile, etc...)
        • set OpTool>MethodTool>Edit>Tool Mode>External Interface. If you are in the right path, a pop-up will appear letting you select which EIM object to load. select which one you prefer
        • press OpTool>MethodTool>Reload
        • If successful, press OpTool>MethodTool>ExternalInterface and select your EIM. Press OK and your EIM will be loaded successfully