+1
0
-1

How do I update static varibale in Vectorcast?

Hello,

I am giving an input to the static variable in the global in the Vectorcast tool. So, as it is a static variable, the unit under test updates with some other value as 10. Can I re...

Posting in: 

9 Answers:

+1
0
-1

Hello,

You can modify the static whenever VectorCAST gets control from the unit under test. That is typically when a stub function is called, or an SBF function. You talk about iterations...

+1
0
-1

Hi brian,
There are no function calling in the unit.

The code is written in such a way that the static variable gets updated inside unit under test, so to verify some condition in the...

+1
0
-1

Hi brian,

There no function calling in the functions.

The code is written in such a way that the static variable gets updated inside unit under test, so to verify some condition, I...

+1
0
-1

Hi,

I have given the options for solving this, there is nothing else I can add on the matter.

Regards,

Brian

 

+1
0
-1

Yes, you can change static vairable value to some other value. This can be achived by compound scnearios.
If you can explain the part of code where static variable is updated, then I will...

+1
0
-1

Hi Snegali,

StringLen = strlen(atAdcToValue[ADC_I_BRIDGE_1].szName);
if (AdcStringLenMax < StringLen)
{
AdcStringLenMax =...

+1
0
-1

Hello,
You can change the return value of strlen() function as follow:

static int i;
if(i==0)
{
StringLen = strlen(atAdcToValue[ADC_I_BRIDGE_1].szName); //Assign...

+1
0
-1

Hi,

Is it possible to modify ...

+1
0
-1

Just notice I forgot to change some ...