Citrix with Load Runner : ctrx_get_bitmap_value returning different value while image is the same












2















I am using Micro Focus Load Runner to record / load test a Citrix ICA application.



I use ctrx_get_bitmap_value to wait for a screen to have the expected state.



I tried already ctrx_sync_on_bitmap and got same issue and I read it was buggy:




  • https://groups.google.com/forum/#!topic/lr-loadrunner/NKxDbvLz8dw


My problem is that, on the same machine, even if the screenshot looks the same for me, it seems the bitmap hash computed is different.



I read this about the Tolerance feature:





  • Citrix Bitmap Sync Tolerance won't work unless set to Exact


But does it really work as per, since reference documentation advises not to use it:



-https://admhelp.microfocus.com/lr/en/12.60/help/WebHelp/Content/VuGen/128450_c_ctirix_replaing_tips.htm#mt-item-6



Note this is not the below issues as I am on same machine:




  • https://community.softwaregrp.com/t5/LoadRunner-User-Discussions/ctrx-get-bitmap-value-returns-different-values-between-VuGen-and/td-p/604944










share|improve this question





























    2















    I am using Micro Focus Load Runner to record / load test a Citrix ICA application.



    I use ctrx_get_bitmap_value to wait for a screen to have the expected state.



    I tried already ctrx_sync_on_bitmap and got same issue and I read it was buggy:




    • https://groups.google.com/forum/#!topic/lr-loadrunner/NKxDbvLz8dw


    My problem is that, on the same machine, even if the screenshot looks the same for me, it seems the bitmap hash computed is different.



    I read this about the Tolerance feature:





    • Citrix Bitmap Sync Tolerance won't work unless set to Exact


    But does it really work as per, since reference documentation advises not to use it:



    -https://admhelp.microfocus.com/lr/en/12.60/help/WebHelp/Content/VuGen/128450_c_ctirix_replaing_tips.htm#mt-item-6



    Note this is not the below issues as I am on same machine:




    • https://community.softwaregrp.com/t5/LoadRunner-User-Discussions/ctrx-get-bitmap-value-returns-different-values-between-VuGen-and/td-p/604944










    share|improve this question



























      2












      2








      2


      1






      I am using Micro Focus Load Runner to record / load test a Citrix ICA application.



      I use ctrx_get_bitmap_value to wait for a screen to have the expected state.



      I tried already ctrx_sync_on_bitmap and got same issue and I read it was buggy:




      • https://groups.google.com/forum/#!topic/lr-loadrunner/NKxDbvLz8dw


      My problem is that, on the same machine, even if the screenshot looks the same for me, it seems the bitmap hash computed is different.



      I read this about the Tolerance feature:





      • Citrix Bitmap Sync Tolerance won't work unless set to Exact


      But does it really work as per, since reference documentation advises not to use it:



      -https://admhelp.microfocus.com/lr/en/12.60/help/WebHelp/Content/VuGen/128450_c_ctirix_replaing_tips.htm#mt-item-6



      Note this is not the below issues as I am on same machine:




      • https://community.softwaregrp.com/t5/LoadRunner-User-Discussions/ctrx-get-bitmap-value-returns-different-values-between-VuGen-and/td-p/604944










      share|improve this question
















      I am using Micro Focus Load Runner to record / load test a Citrix ICA application.



      I use ctrx_get_bitmap_value to wait for a screen to have the expected state.



      I tried already ctrx_sync_on_bitmap and got same issue and I read it was buggy:




      • https://groups.google.com/forum/#!topic/lr-loadrunner/NKxDbvLz8dw


      My problem is that, on the same machine, even if the screenshot looks the same for me, it seems the bitmap hash computed is different.



      I read this about the Tolerance feature:





      • Citrix Bitmap Sync Tolerance won't work unless set to Exact


      But does it really work as per, since reference documentation advises not to use it:



      -https://admhelp.microfocus.com/lr/en/12.60/help/WebHelp/Content/VuGen/128450_c_ctirix_replaing_tips.htm#mt-item-6



      Note this is not the below issues as I am on same machine:




      • https://community.softwaregrp.com/t5/LoadRunner-User-Discussions/ctrx-get-bitmap-value-returns-different-values-between-VuGen-and/td-p/604944







      jmeter performance-testing citrix loadrunner






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 27 '18 at 6:26







      Loc Ann

















      asked Nov 23 '18 at 16:18









      Loc AnnLoc Ann

      12916




      12916
























          3 Answers
          3






          active

          oldest

          votes


















          2














          In ctrx_sync_on_bitmap, we have to choose certain area of the screen and it will compare the bitmap of that sample with the new one to validate.
          Does the screen that you compare contains some text?
          Sometimes the screen with some text provide different bitmaps.



          You can also try "image sync tolerance" option to low or medium in runtime settings.



          Hash Configuration






          share|improve this answer


























          • thanks a lot, I read this about this feature community.softwaregrp.com/t5/LoadRunner-User-Discussions/…, does it really work , if yes ? can you detail in answer ? I'll be happy to accept answer. See admhelp.microfocus.com/lr/en/12.60/help/WebHelp/Content/VuGen/… Thanks

            – Loc Ann
            Nov 26 '18 at 12:12





















          2














          Yes, this feature works, also it depends on the bitmap you comparing.
          For example if you are comparing two bitmaps one with a blue background and one with black then this setting will fail for all the options but if comparing two blues with very less or negligible difference the tolerance low or medium should work.
          Give it a try, i used it over an year ago ant it worked for me.
          one more thing if you the sync that you placing is for a new window(pop-up) then you should try ctrx_sync_on_window function. it Waits until a window is created or becomes active.
          ctrx_wait_for_event("<>");






          share|improve this answer
























          • what are the acceptable differences. In my case with human eye, I see no difference between recorded and replayed screenshots, still it fails.

            – Loc Ann
            Nov 26 '18 at 23:09











          • If there is very negligible difference then this option(tolerance) should work. It worked for us, we even ran the script on different LGs. Did you gave a try to ctrx_sync_on_window?

            – Vineet Sharma
            Nov 27 '18 at 6:05











          • I accepted this answer although it's not working for me. Thanks

            – Loc Ann
            Nov 27 '18 at 6:28











          • We have made a bit of progress, and it appears issue was different. See my answer. Is it also your experience ? Thanks for your help anyway.

            – Loc Ann
            Nov 28 '18 at 20:27



















          2














          It appears from further tests that:




          • The Citrix cluster was load balancing strangely to another server which lead to different bitmaps due to a slight position offset in positionning


          • We also had to switch to Windows Classic theme as per :




            • Use Classic Windows Style








          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53449990%2fcitrix-with-load-runner-ctrx-get-bitmap-value-returning-different-value-while%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            In ctrx_sync_on_bitmap, we have to choose certain area of the screen and it will compare the bitmap of that sample with the new one to validate.
            Does the screen that you compare contains some text?
            Sometimes the screen with some text provide different bitmaps.



            You can also try "image sync tolerance" option to low or medium in runtime settings.



            Hash Configuration






            share|improve this answer


























            • thanks a lot, I read this about this feature community.softwaregrp.com/t5/LoadRunner-User-Discussions/…, does it really work , if yes ? can you detail in answer ? I'll be happy to accept answer. See admhelp.microfocus.com/lr/en/12.60/help/WebHelp/Content/VuGen/… Thanks

              – Loc Ann
              Nov 26 '18 at 12:12


















            2














            In ctrx_sync_on_bitmap, we have to choose certain area of the screen and it will compare the bitmap of that sample with the new one to validate.
            Does the screen that you compare contains some text?
            Sometimes the screen with some text provide different bitmaps.



            You can also try "image sync tolerance" option to low or medium in runtime settings.



            Hash Configuration






            share|improve this answer


























            • thanks a lot, I read this about this feature community.softwaregrp.com/t5/LoadRunner-User-Discussions/…, does it really work , if yes ? can you detail in answer ? I'll be happy to accept answer. See admhelp.microfocus.com/lr/en/12.60/help/WebHelp/Content/VuGen/… Thanks

              – Loc Ann
              Nov 26 '18 at 12:12
















            2












            2








            2







            In ctrx_sync_on_bitmap, we have to choose certain area of the screen and it will compare the bitmap of that sample with the new one to validate.
            Does the screen that you compare contains some text?
            Sometimes the screen with some text provide different bitmaps.



            You can also try "image sync tolerance" option to low or medium in runtime settings.



            Hash Configuration






            share|improve this answer















            In ctrx_sync_on_bitmap, we have to choose certain area of the screen and it will compare the bitmap of that sample with the new one to validate.
            Does the screen that you compare contains some text?
            Sometimes the screen with some text provide different bitmaps.



            You can also try "image sync tolerance" option to low or medium in runtime settings.



            Hash Configuration







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 26 '18 at 12:26









            Loc Ann

            12916




            12916










            answered Nov 26 '18 at 8:32









            Vineet SharmaVineet Sharma

            514




            514













            • thanks a lot, I read this about this feature community.softwaregrp.com/t5/LoadRunner-User-Discussions/…, does it really work , if yes ? can you detail in answer ? I'll be happy to accept answer. See admhelp.microfocus.com/lr/en/12.60/help/WebHelp/Content/VuGen/… Thanks

              – Loc Ann
              Nov 26 '18 at 12:12





















            • thanks a lot, I read this about this feature community.softwaregrp.com/t5/LoadRunner-User-Discussions/…, does it really work , if yes ? can you detail in answer ? I'll be happy to accept answer. See admhelp.microfocus.com/lr/en/12.60/help/WebHelp/Content/VuGen/… Thanks

              – Loc Ann
              Nov 26 '18 at 12:12



















            thanks a lot, I read this about this feature community.softwaregrp.com/t5/LoadRunner-User-Discussions/…, does it really work , if yes ? can you detail in answer ? I'll be happy to accept answer. See admhelp.microfocus.com/lr/en/12.60/help/WebHelp/Content/VuGen/… Thanks

            – Loc Ann
            Nov 26 '18 at 12:12







            thanks a lot, I read this about this feature community.softwaregrp.com/t5/LoadRunner-User-Discussions/…, does it really work , if yes ? can you detail in answer ? I'll be happy to accept answer. See admhelp.microfocus.com/lr/en/12.60/help/WebHelp/Content/VuGen/… Thanks

            – Loc Ann
            Nov 26 '18 at 12:12















            2














            Yes, this feature works, also it depends on the bitmap you comparing.
            For example if you are comparing two bitmaps one with a blue background and one with black then this setting will fail for all the options but if comparing two blues with very less or negligible difference the tolerance low or medium should work.
            Give it a try, i used it over an year ago ant it worked for me.
            one more thing if you the sync that you placing is for a new window(pop-up) then you should try ctrx_sync_on_window function. it Waits until a window is created or becomes active.
            ctrx_wait_for_event("<>");






            share|improve this answer
























            • what are the acceptable differences. In my case with human eye, I see no difference between recorded and replayed screenshots, still it fails.

              – Loc Ann
              Nov 26 '18 at 23:09











            • If there is very negligible difference then this option(tolerance) should work. It worked for us, we even ran the script on different LGs. Did you gave a try to ctrx_sync_on_window?

              – Vineet Sharma
              Nov 27 '18 at 6:05











            • I accepted this answer although it's not working for me. Thanks

              – Loc Ann
              Nov 27 '18 at 6:28











            • We have made a bit of progress, and it appears issue was different. See my answer. Is it also your experience ? Thanks for your help anyway.

              – Loc Ann
              Nov 28 '18 at 20:27
















            2














            Yes, this feature works, also it depends on the bitmap you comparing.
            For example if you are comparing two bitmaps one with a blue background and one with black then this setting will fail for all the options but if comparing two blues with very less or negligible difference the tolerance low or medium should work.
            Give it a try, i used it over an year ago ant it worked for me.
            one more thing if you the sync that you placing is for a new window(pop-up) then you should try ctrx_sync_on_window function. it Waits until a window is created or becomes active.
            ctrx_wait_for_event("<>");






            share|improve this answer
























            • what are the acceptable differences. In my case with human eye, I see no difference between recorded and replayed screenshots, still it fails.

              – Loc Ann
              Nov 26 '18 at 23:09











            • If there is very negligible difference then this option(tolerance) should work. It worked for us, we even ran the script on different LGs. Did you gave a try to ctrx_sync_on_window?

              – Vineet Sharma
              Nov 27 '18 at 6:05











            • I accepted this answer although it's not working for me. Thanks

              – Loc Ann
              Nov 27 '18 at 6:28











            • We have made a bit of progress, and it appears issue was different. See my answer. Is it also your experience ? Thanks for your help anyway.

              – Loc Ann
              Nov 28 '18 at 20:27














            2












            2








            2







            Yes, this feature works, also it depends on the bitmap you comparing.
            For example if you are comparing two bitmaps one with a blue background and one with black then this setting will fail for all the options but if comparing two blues with very less or negligible difference the tolerance low or medium should work.
            Give it a try, i used it over an year ago ant it worked for me.
            one more thing if you the sync that you placing is for a new window(pop-up) then you should try ctrx_sync_on_window function. it Waits until a window is created or becomes active.
            ctrx_wait_for_event("<>");






            share|improve this answer













            Yes, this feature works, also it depends on the bitmap you comparing.
            For example if you are comparing two bitmaps one with a blue background and one with black then this setting will fail for all the options but if comparing two blues with very less or negligible difference the tolerance low or medium should work.
            Give it a try, i used it over an year ago ant it worked for me.
            one more thing if you the sync that you placing is for a new window(pop-up) then you should try ctrx_sync_on_window function. it Waits until a window is created or becomes active.
            ctrx_wait_for_event("<>");







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 26 '18 at 13:24









            Vineet SharmaVineet Sharma

            514




            514













            • what are the acceptable differences. In my case with human eye, I see no difference between recorded and replayed screenshots, still it fails.

              – Loc Ann
              Nov 26 '18 at 23:09











            • If there is very negligible difference then this option(tolerance) should work. It worked for us, we even ran the script on different LGs. Did you gave a try to ctrx_sync_on_window?

              – Vineet Sharma
              Nov 27 '18 at 6:05











            • I accepted this answer although it's not working for me. Thanks

              – Loc Ann
              Nov 27 '18 at 6:28











            • We have made a bit of progress, and it appears issue was different. See my answer. Is it also your experience ? Thanks for your help anyway.

              – Loc Ann
              Nov 28 '18 at 20:27



















            • what are the acceptable differences. In my case with human eye, I see no difference between recorded and replayed screenshots, still it fails.

              – Loc Ann
              Nov 26 '18 at 23:09











            • If there is very negligible difference then this option(tolerance) should work. It worked for us, we even ran the script on different LGs. Did you gave a try to ctrx_sync_on_window?

              – Vineet Sharma
              Nov 27 '18 at 6:05











            • I accepted this answer although it's not working for me. Thanks

              – Loc Ann
              Nov 27 '18 at 6:28











            • We have made a bit of progress, and it appears issue was different. See my answer. Is it also your experience ? Thanks for your help anyway.

              – Loc Ann
              Nov 28 '18 at 20:27

















            what are the acceptable differences. In my case with human eye, I see no difference between recorded and replayed screenshots, still it fails.

            – Loc Ann
            Nov 26 '18 at 23:09





            what are the acceptable differences. In my case with human eye, I see no difference between recorded and replayed screenshots, still it fails.

            – Loc Ann
            Nov 26 '18 at 23:09













            If there is very negligible difference then this option(tolerance) should work. It worked for us, we even ran the script on different LGs. Did you gave a try to ctrx_sync_on_window?

            – Vineet Sharma
            Nov 27 '18 at 6:05





            If there is very negligible difference then this option(tolerance) should work. It worked for us, we even ran the script on different LGs. Did you gave a try to ctrx_sync_on_window?

            – Vineet Sharma
            Nov 27 '18 at 6:05













            I accepted this answer although it's not working for me. Thanks

            – Loc Ann
            Nov 27 '18 at 6:28





            I accepted this answer although it's not working for me. Thanks

            – Loc Ann
            Nov 27 '18 at 6:28













            We have made a bit of progress, and it appears issue was different. See my answer. Is it also your experience ? Thanks for your help anyway.

            – Loc Ann
            Nov 28 '18 at 20:27





            We have made a bit of progress, and it appears issue was different. See my answer. Is it also your experience ? Thanks for your help anyway.

            – Loc Ann
            Nov 28 '18 at 20:27











            2














            It appears from further tests that:




            • The Citrix cluster was load balancing strangely to another server which lead to different bitmaps due to a slight position offset in positionning


            • We also had to switch to Windows Classic theme as per :




              • Use Classic Windows Style








            share|improve this answer




























              2














              It appears from further tests that:




              • The Citrix cluster was load balancing strangely to another server which lead to different bitmaps due to a slight position offset in positionning


              • We also had to switch to Windows Classic theme as per :




                • Use Classic Windows Style








              share|improve this answer


























                2












                2








                2







                It appears from further tests that:




                • The Citrix cluster was load balancing strangely to another server which lead to different bitmaps due to a slight position offset in positionning


                • We also had to switch to Windows Classic theme as per :




                  • Use Classic Windows Style








                share|improve this answer













                It appears from further tests that:




                • The Citrix cluster was load balancing strangely to another server which lead to different bitmaps due to a slight position offset in positionning


                • We also had to switch to Windows Classic theme as per :




                  • Use Classic Windows Style









                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 28 '18 at 20:26









                Loc AnnLoc Ann

                12916




                12916






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53449990%2fcitrix-with-load-runner-ctrx-get-bitmap-value-returning-different-value-while%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Wiesbaden

                    Marschland

                    Dieringhausen