21 Comments

    1. admin

      Hi Sashi,

      To test/Initialize Pointer use the “FORMAT” Instruction
      The FORMAT instruction allows you to change the display format of a tested item.
      This item can be:
      • A variable
      • A simple C type declared by typedef; in this case, the display mode will change
      for all variables of this type
      • A member of a structure or a C union; in this case, the display mode will change
      for all the members of variables of this type
      Example:
      #char x;
      #typedef char *pointer;
      #pointer p;
      #char t[10]
      FORMAT x = int
      FORMAT pointer = void– modifies p
      FORMAT t = int[] – t is an array of integers
      FORMAT x = int#h8 — display in hexa, only 8 bits
      FORMAT y = #b — display in binary without
      — modifying the type
      FORMAT z = short#u — display in unsigned decimal
      FORMAT f1 = #f — displays by example 3.670000
      FORMAT f1 = #f4 — displays by example 3.6700
      FORMAT f1 = #e4 — displays by example 0.36700E1FORMAT

      I hope my reply will serve your purpose if not please reply with your doubts I will clarify .

      Thanks
      Siva

      Reply
      1. jitendra

        how to test below code

        int a(*b)
        {

        }

        and

        int a()
        {
        c=b(*d)// b() is stub function
        }

        Reply
    2. Keshav

      To test a pointer you can use the user code in ptu, first you need to make a local variable inside ptu and then give the address of that variable to the pointer you want to take, then take final output as return.

      In case you need any help, you can visit http://www.indiastudyportal.com

      Reply
  1. prasad

    Hi,
    could anybody post the RTRT interview questions?

    Thanks

    Reply
  2. Saurabh

    How to test for loop and while loop for code coverage?

    Reply
    1. SOUMYA SAGAR SAHOO

      basically, in RTRT for loop and while wont be test with 100% coverage, because when we are testing of for loop or while loop the loop keep on going and testing and it never stops in between( note: if you are not using any break keyword). so at the end this loop will stop. so in the coverage report it will only show ” 2 or more loop has been covered”.

      Reply
  3. Saurabh

    How to test for loop and while loop for code coverage?
    closing brace of for or while loop always shows in red color, it means it is not fully covered..

    Reply
  4. admin

    hi saurabh,

    can you please provide the complete while loop condition, so that i can check and let you know.

    Thanks

    Reply
  5. Nisarg Varma

    Hi, when I have created a node with two files in it. One is a .ptu file and the other one is .c file ( as shown above). Now when i try to compile either of the files, i get an error saying “NTVDM.exe” encountered an error. Still a green tick is coming besides the file. I get two warnings saying “.fdc not generated” and “.tsf not generated” and the .i file is empty! Can anyone help me out with this? Thanks!

    Reply
  6. Sunil Sonta

    Do we need to enable any option to do integration testing using RTRT..??Please provide the path.?

    Reply
    1. SOUMYA SAGAR SAHOO

      yes, you have to add that additional file which is called as a depended file for your source file. so basically when you are creating project/activity that time in the end there is an option called “additional file source” there you have to add that dependent file. and the second step is you have to instrument the file by clicking “exclude from uninsrument” this you will found at the left side bottom of your RTRT.

      Reply
      1. SOUMYA SAGAR SAHOO

        forgot to add one more thing is when you will do exclude from uninstrument that additional file colour will change “white colour to blue”.

        Reply
  7. Saurav

    What are the different types of errors that occur in RTRT? Please explain how and when those errors generate.

    Reply
  8. raj

    What is Instrumentation in RTRT . What are the files formed when we do Instrumentation in RTRT

    Reply
  9. TAMILMARAN C

    Generally all the source code would be validate with that std qualified along with validation tool , To removal of dead code , removed the number of lines may ivoke and revoke such that did how much performance difference between the emulator , simulator and real system ?

    Reply
  10. TAMILMARAN C

    How much trustable for simulator, emulator and real time system performance testing differences amongst between drivers and stubs creation ?

    Reply
  11. niru

    Can anyone give me a .c file and respective .ptu file?

    Thanks

    Reply

Leave a Reply to TAMILMARAN C Cancel reply

Your email address will not be published. Required fields are marked *