Welcome to the Quest Code Tester Community
Advanced Search - Help - Search Toad World
Welcome, Guest
Login Login / Register
Help
NEW? Get Plugged In

Forums » Beta Program » Bugs

Thread: Tests deactivated by default


Permlink Replies: 4 - Pages: 1 - Last Post: Nov 17, 2009 3:36 AM by: stevenfeuerstein
tkeul

Posts: 15
Registered: 6/20/07
Tests deactivated by default
Posted: Oct 19, 2009 1:45 AM
  Click to reply to this thread Reply

May be it's a bug or a feature using 1.9.0.460.

I want to test a new package.
In Test Builder I make a very simple test for a very simple function and save.
Then I switch to another function to prepare some less simple tests.
Clicking now on button Run only runs tests for the first function.

As I can see in Test Editor the second function is deactivated.

I expect that all new tests are activated by default.


stevenfeuerstein


Posts: 204
Registered: 5/18/06
Re: Tests deactivated by default
Posted: Oct 19, 2009 5:18 AM   in response to: tkeul
  Click to reply to this thread Reply

Thomas, we didn't change anything in this area for 1.9 that I know of. I would like some clarification:

No test existed for package ABC

You started up Test Builder and created a test for one function in ABC.

Then while still in TB, you chose another function, created some other tests.

Then when you ran the test from TB, the tests from the second function were not active.

This is correct? Then I ask: you say "prepare for some less simple tests". Does this mean you did not finish these tests? Did you have any warnings when you ran?

Also, can you reproduce this behavior? I will try as well, of course, but I have a feeling it may be specific to the kinds of tests you were building on the second function.

Steven




tkeul

Posts: 15
Registered: 6/20/07
Re: Tests deactivated by default
Posted: Nov 17, 2009 2:49 AM   in response to: stevenfeuerstein
  Click to reply to this thread Reply

Steven,
your scenario is correct
I reproduced it twice before I posted my message, just to be shure.

I had no warnings when I clicked Run.

Less simple means editing the customization areas for test setup and more than one outcome, including single value queries.

/tk


StevenFeuerstein

Posts: 108
Registered: 11/4/06
Re: Tests deactivated by default
Posted: Nov 17, 2009 3:24 AM   in response to: tkeul
  Click to reply to this thread Reply

Thanks, Thomas. I see that now. I will get it fixed for the next 1.9 beta.


stevenfeuerstein


Posts: 204
Registered: 5/18/06
Re: Tests deactivated by default
Posted: Nov 17, 2009 3:36 AM   in response to: StevenFeuerstein
  Click to reply to this thread Reply

Thomas, there is a "workaround" - don't do any intermittent saves. Just do one save "at the end" of your session in Test Builder. I know that this is not ideal. But that is where the bug seems to come in.

After that initial save, TB thinks you are editing an existing test definition and in that situation, we do not change the status of a unit test. If the user had previously deactivated it, we keep it that way.

This logic clearly needs some correction, which we will do.

Regards, SF



Legend
Guru: 2001 + pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums