Skip to Content
In the SDN Business One main page we have published a set of software tools called Business One Test Environment.  These tools can be useful to: * profile the execution in the performance tuning phase of development, * troubleshoot run-time issues in customer installations, * check possible compatibility breakages in add-on.  The Business One Test Environment is used by SAP during the SAP Business One Add-On Solution Certification phase.  You can access to the setup files to install the Test Environment tools and to the sources code from the main Business One SDN page (Test Environment). The Test Environment is given as a free source code and therefore there is no support by SAP for the provided tools.  Important note: In order to be able to run the tools included in the B1TE package you need to have .NET Framework 1.1 version installed in your machine.  We will like to use this Weblog as a way to receive and share your feedback about the Business One Test Environment.  Please give us your opinion: Do you find it useful? User friendly? Do you think something important is missing? We are really interested in your opinion.
To report this post you need to login first.

17 Comments

You must be Logged on to comment or reply to a post.

  1. Fakher Halim
    I installed the “SAP Business One DbBrowser” on my Windows 2003 machine. It fails with a dialog box title: “Initialization problem”. The message is:
    “ERROR: The type initializer for “B1Wizard.Globals” thre an exception”.
    Would you please let me know what is wrong? Can I have the source code for “SAP Business One DbBrowser” or there is some log that can give me additional hint. Your help will be appreciated as we are trying to integrate our product with Business One.
    (0) 
    1. Maria Trinidad MARTINEZ GEA Post author
      Hi,

      The source code of DbBrowser is included into the B1DE source code. You only have to download it from the B1 Development Environment in the main SDN page of B1. This way you can debug the DbBrowser tool and find what is missing in your installation. You must open the solution called B1Wizard inside “AddOnCodeGeneratorWizard\B1Wizard” directory. Then debug the B1DbBrowserTool project, as your message shows the problem is in the Globals class inside the B1Wizard project (B1DbBrowserTool calls B1Wizard classes).

      Otherwise, are you using 2004 or 2005 version?
      I suppose you installed the complete B1TE?

      (0) 
      1. Fakher Halim
        My initial complaint was really trivial as it was my first day with B1DE and B1TE, then I found the full source code and it was pretty smooth sailing ever since. However I am not very clear on how to interpret few warnings.
        I am almost always inheriting from B1DE 1.1 “B1WizardBase” classes, thus avoiding any direct COM calls to UI API wherever B1DE provides a C# class. After completing development I started using B1TE tools to tune up, and avoid anything that may not be the best practice. Of course I can use “Common Sense” to figure out, but it is always safe to ask experts..

        1. NET Profiler: I am just using select via DI::IRecordset.DoQuery only when there is just no other option available in API, it still marks it orange as “DI::IRecordset.DoQuery – POSSIBLE ISSUE: Possible direct DB access”. For certification, would that be an issue?
        2. NET Profiler: I am always using XML forms wherever possible to load my own forms/menus, however, I dynamically added a folder to A/R invoice form and created a button and a text box directly using UI::ItemsClass.Add(). I believe it was a benign extension, but it was also marked orange?
        3: Bubble checker: I am clicking a button, and if my business logic determines that it is not a valid operation, and write RED error message in status bar, the bubble checker marks it an issue “ORANGE” because “bubble” was “False.” I know it is not an issues because I am gracefully creating an error message, and there is no COM exception, but am worried that it may slow down the certification process.

        Any comments will be appreciated

        (0) 
          1. Fakher Halim
            Hi Trinidad,

            Sorry to bother you again. I have fine tuned my add-on and it works perfectly well; however when I click “Stop” in Add-On manager, my B1DE based add-on ends completely, but the SAP Business One pops up an error message “Failed to stop add-on”.
            This topic has been under discussion at SDN (“Failed to stop add-on”) since Nov 3, 2005 without any resolution.
            I posted my code couple of time there for any opinion, but it appears that this is an issue only in version 2004 – gets solved without any code change in version 2005.
            I confirmed with “Windows Task Manager” that the Add-on really stops, but am really worried about that message. I expected that after application of Patch 31 it would make it go away, but unfortunately it is still around.
            I am desperately looking for a workaround, if there is one available, to avoid any questions during its certification scheduled for Monday.

            (0) 
            1. Maria Trinidad MARTINEZ GEA Post author
              Hi Fakher,

              This thread is dedicated to B1 Test Environment tools questions. There is also another thread for B1DE tools. Nevertheless your last question has nothing to do with B1DE or B1TE tools.
              Please use the SDN forum for general SDK questions and if you have no answer in the SDN forum please create a message for SAP support under ServiceMarketPlace web site.
              I have seen your question in SDN has already been answer, please have a look to thread
              Failed to stop add-on
              Regards
              Trinidad.

              (0) 
  2. Vanesa Carrasco
    Hi,

    I’ve run the .Net Profiler, and in the column type it appears _IApplicationEvents_SinkHelper what is this?
    Before giving this type it gives 2 errors, these errors are: System.ArgumentNullException and System.Reflection.TargetInvocationException.
    In these errors it doesn’t say if they are of UI or DI, why is this?

    Thanks.
    Vanesa

    (0) 
    1. Maria Trinidad MARTINEZ GEA Post author
      Hi Vanesa,
      The _IApplicationEvents_SinkHelper class is called for every new event that is fired to the addons by the UI API. It is normal to have this calls in the .NET Profiler.
      But the exceptions you receive are not normal, I don’t receive them when I profile my addons. Do you receive them always before the SinkHelper call? Do they have the same PID? And TID?
      The exceptions are not filtered and you can then receive any exception from any program run between the moment you set the Environment variable COR_ENABLE_PROFILING=1 and the moment to set it to 0 (by calling Program Files -> B1TE -> .NET Profiler -> Start Profiling). You have to call StartProfiling just before starting your addon and just after your addon starts call StopProfiling (if you are running it from B1 then you call start just before running B1 and stop just after).
      Please have a look to the B1TE help file.
      Hope it is clear now
      Trinidad.
      (0) 
  3. Avraham Litzman
    Hi, when I try to start the B1 TESamples Add-on, I get a message as follows:

    ERROR – Connection failed:  Bad Company Version

    I am using 2007A PL15.

    I downloaded, uninstalled and reinstalled everything again this morning, but it didn’t help.  Does this Add-on work with PL15, or is there another problem?

    Thanks,

    Avraham

    (0) 
    1. Maria Trinidad MARTINEZ GEA Post author
      Hi Avraham,

      I have just retested with B1 2007A PL11 and it installs and works fine… I’ll upgrade soon to PL15 and try one more time, I’ll let you know if I have any problem with PL15. I don’t see a reason for failling with “Bad Company Version”.
      Are you able to run other addons.

      Regards, Trinidad.

      (0) 
        1. Maria Trinidad MARTINEZ GEA Post author
          Hi Avraham,

          I have just upgraded B1 2007A to PL15 (I was on PL11) and installed B1TESample without problems.
          When I run it the connection is made and the menus added without any error.
          B1TESample is using SSO to connect to UI + DI API. Can you please try to run the UI+DIAPI sample given with the SDK (HelloWorld)? This addon is simply doing a SSO connection.
          You message is like if you where trying to connect to a company database with a too old version (older than the B1 application). Is your company version 800171 (you can see it in the B1 Choose Company form)?

          Regards, Trinidad.

          (0) 
  4. Alessandro Prunelli
    hi,
    i have got some troubles with the B1TE,SAP Business One Test Environment Tools Setup for SAP Business One SDK 2005 SP01 v2.1.

    Now i’m running SAP Bussines One 2005a SP01 PL 39 with ms-sql server 2005.

    i’m tried to use the MSSQL Profiler Templates but they aren’t good for sql server 2005,
    they seems build for mssql 2000.

    where can i find the rigth version ?

    A big Hello.
    Alessandro

    (0) 
  5. ani nazir
    Hi Trinidad,

       Error in B1 DB Profiler:

    Even though I configured my SBO_SP_Transaction Notification stored Procedure, I am getting the Error like below.

    “An addon test has been run.Several lines should appear in the B1DbProfiler is not correctly configured.If failed please check you have copied the needed code into the SBO_SP_TransactionNotification stored procedure.”

    (0) 
  6. Demian Drabyk
    Hi Trinidad,

    I’m starting to test an AddOn with the tools provided by SAP (. NET Profiler, Bubble Checker, DB Browser, DB profiler, DI Logs Reader, Form Checker)
    The first was to use DB Browser, this is throwing me an error when I select a table (System.NullReferenceException).

    You could tell that I am doing wrong?

    Greetings Demian.

    (0) 

Leave a Reply