For example, you may want to run a job in AX that mimics the retail transaction services (RTS) call that the POS is calling and see the raw data in AX thus totally eliminating the need for the POS in the testing process. I used this scenario in the below code using a dummy RTS method.
    Object      FormRun = classFactory.formRunClass(new Args(FormStr(SysConView)));
    FormDesign  design;
    Container   c; // The container we want to view
    formRun.init();
    if (!prmIsDefault('Caption'))
    {
        design = formRun.design();
        design.caption('Caption');
    }
    // Use an RTS call and build/return a container using a customer id
    c = RetailTransactionService::containerExample('ARCA-000007');
    formRun.setContainer(c);
    formRun.run();
    formRun.detach();     The result from this code will look like:
