NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand Result Processing - Database Logging and Report Generation (xml)

Solved!
Go to solution

Here is the setting I'm interested in => Result Recording : Disabled

Does someone knows if there is a way to disable result recording for database logging and not for report generation (xml)?

 

The reason I ask is that the report generation is used by our customer to fullfil its database but on my side, I would like to be able to disable some results without impacting it's full report.

On my side, I use the generic record set provided by teststand and it works well but if I disable result recording for some steps, the xml report generation seems to be affected (logical in my opinion) but I'd like to overcome this situation if it is possible.

 

Anyone has faced this problem or knows a way to achieve it?

 

Many thanks,

0 Kudos
Message 1 of 8
(4,794 Views)

Are you just trying to disable database logging for some steps and not others?  If so then this can't be done without modifying the plugin.

 

If you just want to turn off the database logging then you can do it in the Database Options Callback.  Just set parameters.databaseoptions.disabledatabaseoptions = True.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 8
(4,768 Views)

Yes exactly.

 

I want to be able for some steps to disable database logging but not report generation (xml) file.

You think I can call "parameters.databaseoptions.disabledatabaseoptions = True" and it will do the trick?

 

Do you think I need to call that in the preexpression and the set it to False on the post expression so other steps don't get impacted?

 

Many thanks for your help and answer

0 Kudos
Message 3 of 8
(4,761 Views)

I don't believe there is an option to selective switch off Database logging for some steps and not for others.

 

Its either all or nothing when you configure the Database Options.

Likewise if you disable a Step's Result Reporting then it stops logging to both Database and Report if you have both of them enabled in the Options.

Regards
Ray Farmer
0 Kudos
Message 4 of 8
(4,755 Views)

So in conclusion, nothing can be achieved for what I ask here, correct?

If so I will accept your answer and look for other options that I could explore!

0 Kudos
Message 5 of 8
(4,753 Views)
Solution
Accepted by topic author ebonneau9

I think you could do this with only a slight modification to the schema. Add a precondition to the STEP_RESULT table and look for some property that is specific to the steps you'd like to exclude. For example, you could look for a specific step type, or step name:

dboptions.PNG

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 6 of 8
(4,748 Views)
Solution
Accepted by topic author ebonneau9

Looking back at your original request:

[The reason I ask is that the report generation is used by our customer to fullfil its database but on my side, I would like to be able to disable some results without impacting it's full report.]

You don't want to impact on the full report.

Therefore, leave that side alone and create your own Report Plugin.

 

Regards
Ray Farmer
0 Kudos
Message 7 of 8
(4,717 Views)
Solution
Accepted by topic author ebonneau9

Thank you for pointing me out a solution that I think can achieve what I need.

Didn't think one minute about custom logging plugin.

 

I will mark this as the answer.

0 Kudos
Message 8 of 8
(4,711 Views)