Options

Automatic Regression Testing

lmergirbaudlmergirbaud Member Posts: 6
Hi guys, im just new in this forum and also new in Navision. I've been assigned in a project where it is required to automate the regression testing of the forms. Is there someone who knows an effective testing tool which can recognize Navision controls independently from the form. I'm currently trying the TestComplete tool but it seems that controls are painted in the form instead of being pasted (hope you get what I mean). Thanks

Comments

  • kinekine Member Posts: 12,562
    If you are talking about some tests on the form, if controls are fulfilling some rules, there is one standard tool for Navision: GUI Check Tool. It is on MBS Tools CD in folder Implementation...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • lmergirbaudlmergirbaud Member Posts: 6
    I don't know bout that tool yet. Is it used as a tool for automation of regression testing? I think i have accidentally read a post that there is no native testing tool for Navision. I just couldn't find the post anymore. Anyway thanks for the repli and the info.
  • kinekine Member Posts: 12,562
    Sorry, the tool is not for "automatic testing" but only for test of the GUI part of Navision. It check all controls on forms and is searching for rule violation of rules (for example Clues on buttons, form border etc.)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • alecavaalecava Member Posts: 15
    If you find something I'm interesting in any type of test; regression, unit test and so on.
    But I think that there is not way for automatic testing. Navision development is so antiquated....
  • cjarviscjarvis Member Posts: 5
    edited 2007-01-23
    Hello, I am facing the same issue. I am new to Navision, and need some advice on how to accomplish automated testing. Here is my approach to tackle this issue. I am using the BenchMark Tool as a base, located on this site. I then want to write codeunits called by this framework that will exercise the custom forms we've built. This will allow me to regression test at will and have a more accurate performance test. My current issue is automating the forms. This should be a relatively easy task any where else, but I'm in Navision land. I cant find any examples or even topics discussing how to do this. If anyone can point me in the right direction, it would be greatly appreciated.
  • kinekine Member Posts: 12,562
    You can use the SendKey function to send some sequention of keystrokes to the form to simulate the user work. This keystrokes can be defined in some way, which can lead to "random" user input.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • cjarviscjarvis Member Posts: 5
    kine wrote:
    You can use the SendKey function to send some sequention of keystrokes to the form to simulate the user work. This keystrokes can be defined in some way, which can lead to "random" user input.

    ~Greatly Appreciated! :D
  • cjarviscjarvis Member Posts: 5
    kine wrote:
    You can use the SendKey function to send some sequention of keystrokes to the form to simulate the user work. This keystrokes can be defined in some way, which can lead to "random" user input.

    This worked fine until I got to a subform within the main form. Any ideas why sendKeys doesnt work with subforms?
  • DenSterDenSter Member Posts: 8,307
    The keystroke to go to the subform is Ctrl+arrow down.
  • cjarviscjarvis Member Posts: 5
    DenSter wrote:
    The keystroke to go to the subform is Ctrl+arrow down.

    No luck. I can tab into the subform just fine, but once I get there it stops working. It possible that a flow field is giving me problems. Anyway, this seemed like a good idea at the time, but now I am not so sure. I wanted to leverage the forms and the code that is in them. Is there a way to programmatically load a form, set values on the form (and any subforms), and then call a funciton on that form, ie, a posting routine? Once again, any direction is greatly appreciated.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    This tool can give you some ideas: Navision Application Benchmark Tool v1.00
    The Application Benchmark Tool has been developed to measure the performance of a Navision installation, and to express the results in terms that mirror real world situations.Ideally, these results should relate directly to the terms of a requirement specification from a customer. The tool can be used when you are running Navision on either Navision Database Server or on SQL Server. The tool puts a realistic load on the server in order to monitor the true performance of Navision.

    The Application Benchmark Tool version 1.00 is developed for Microsoft Business Solutions-Navision W1 4.0 and Microsoft Navision W1 3.70A.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • cjarviscjarvis Member Posts: 5
    This tool can give you some ideas: Navision Application Benchmark Tool v1.00

    Luc,
    I am currently using this tool as starting point and as my base. My problem is, while this tool is great for perfomance testing Navision "out-of-the-box", our implementation has a lot customization. We also are only using the accounting portion of this package and not utilizing any of the sales or inventory modules. The benchmark tool does not stress this customized code, and due to time constraints, I have to find the quickest way to test this customized code. In general, the tool calls code units to perform and simulate user actions. I need to write my own custom code units to exercise all of the customizations we have. So, what is the easiest (fewest lines of code) way to accomplish this task? Thanks again for any assistance.
  • Miklos_HollenderMiklos_Hollender Member Posts: 1,598
    You can use the SendKey function

    In that case I'd suggest the free and excellent (www.) AutoHotKey (.com) tool. It is a scripting environment which can send keystrokes, but it can also send mouseclicks, it has some additional tool which shows you the ID of a form control and you can send a direct click to it and many, many more things. It's just lovely. You can even compile the script to standalone .EXE files.
Sign In or Register to comment.