Forum Discussion

Novari-QA's avatar
Novari-QA
Frequent Contributor
7 years ago

Project Variables not applying at run time.

In my project, we have a test case that requires the data to be up todate. We click a value on the screen that is linked to a project variable. and the name mapping object uses that project variable in order to decide what day to select.

I want to define 1 cell in the calendar. use a project variable to define which day to select, and define the variable at run time. However, it doesn't seem to be applying at run time. I'll say X = 2, run the project output the result, for some reason it comes out as x = 31 (idn why).  Then i run the project again, and X now = 2. But it isn't fully applied to the name mapping feature.


If anyone has time, id love to go into more details.

8 Replies

  • baxatob's avatar
    baxatob
    Community Hero

    Hi,

     

    Pls show the code, where you have assign the variable and where your call it.

    • Marsha_R's avatar
      Marsha_R
      Champion Level 3

      Please also show where the variable is defined in the project.  I have seen strange results in tests that came from a variable accidently getting defined as Object or something else when it should have String or whatever was expected.

      • Novari-QA's avatar
        Novari-QA
        Frequent Contributor

        Here is the code, and some screen shots. Hopfully it will clear up what is wrong. Perhaps I am doing it wrong.

        Run the routine "Foo"
        See Results.
        It trys to drag the same object twice but clearly I am updating the objects name