Jump to content
Daklu

Suggestion: testExample.vit

Recommended Posts

When I create a new test case class the first thing I do is rename testExample.vi to textExample.vit. That simplifies my work flow a bit for a couple reasons:

 

1. I can right click the template and use "New From Template" instead of going through the rename dialog box. Easier and faster.

2. The testExample unit test doesn't show up as an available test so it isn't executed and my test results aren't all cluttered up.

 

Changing it to a template does raise an error when I start VI Tester. Any chance of 'officially' changing testExample to a template?

 

post-2450-1250006054.png

Share this post


Link to post
Share on other sites
Any chance of 'officially' changing testExample to a template?

 

This is a good idea, we'll look into it further. I think the reason that we shipped the testExample as a .vi instead of .vit is so that users could actually 'execute' the testCase that we create without any modifications to validate that their testCase *works*. Its partly because we weren't sure how much LVOOP experience our users would have so we wanted to minimize the effort for getting started, and that meant making it easy for users to see their testCase on the VI Tester GUI.

 

The runtime error you are seeing is because the way that we find tests to show on the VI Tester UI is via 'introspection' and it just happens that we're searching for VIs named test*.vi and test*.vit is being found as a 'match'. I've filed a bug for this (Case 7883) and added it to the known issues.

Share this post


Link to post
Share on other sites
The runtime error you are seeing is because the way that we find tests to show on the VI Tester UI is via 'introspection' and it just happens that we're searching for VIs named test*.vi and test*.vit is being found as a 'match'.

 

FWIW the error doesn't seem to hurt anything. I suppose I could just go into <Labview>\resource\JKI\VI Tester\Templates\TestCase and rename textExample.vi to Example.vit. Then I wouldn't have to rename it at all for new test cases.

Share this post


Link to post
Share on other sites

Update: We're getting ready for a new VI Tester release and this feature suggestion has been implemented. Stay tuned!

 

This actually improves workflow quite a bit. Now I can right-click on testExample.vit and select "New from Template". Thanks!

Share this post


Link to post
Share on other sites

It would also be nice if the standard template would have bit more space and that everything is lined up correctly

Or better yet, allow us to replace the default template with our own templates.

 

(FYI, test cases are usually similar enough that I create new ones by opening an existing test case and selecting "Save As..." rather than starting from scratch every time.)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.