Report's screeschots bug

6 posts, 0 answers
  1. Ivan
    Ivan avatar
    21 posts
    Member since:
    Jul 2016

    Posted 27 Mar 2017 Link to this post

    Hello,

    the last TestStudio release has a bug with a screenshot in a test list report.


    A project which displays the bug you can load from here https://drive.google.com/open?id=0B0EHXWVdmSJFeTZKdFFUWUVrQzA.

    My result is inside the project.

    To reproduce the bug you can run BugReport test list.

    Bug description.

    A screenshot of the first failed step for each test from a test list is wrong. The top place of the screenshot is valid other part is wrong (Fail1_0_ImageOnFailure.png, Fail1_0_ImageOnFailure.png from the project results).

    The test viewer displays the wrong screenshot for the first failed step (for each test from test list). For the second failed step, we see the screenshot which is expected for the first one. This offset by one screenshot is saved for all other failed steps of the test.
  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    1060 posts

    Posted 29 Mar 2017 Link to this post

    Hi Ivan,

    Thank you for your contribution with every inconsistency you face. 

    I reviewed the provided project and it was quite easy to understand what the reported issue was. I really appreciate your efforts. There is a bug report submitted already which concerns the images on failure in a test list execution.

    I have updated the item in question internally and shared all details provided by you which certainly will bring further clarity for the case and what causes it. Please find the entry in the public feedback portal here - you could follow its progress, vote, comment, etc. 

    Additionally I would like to point that if the provided test list is executed against Firefox or Chrome the Images on failure are generated and displayed correctly. At least on my end. Could you give it a try and double check if it works for you as well? 

    Thank you once again for your time and continuous cooperation! 

    Regards,
    Elena Tsvetkova
    Telerik by Progress
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. Ivan
    Ivan avatar
    21 posts
    Member since:
    Jul 2016

    Posted 30 Mar 2017 Link to this post

    Hello Elena,

    I confirm that Firefox and Chrome work well on my side.

  4. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    1060 posts

    Posted 03 Apr 2017 Link to this post

    Hello Ivan,

    It is good to know the behavior does not differ on your and my end. You could follow the public item which will be updated once there is any progress on the investigation. Thanks a lot for your time and cooperation! 

    Regards,
    Elena Tsvetkova
    Telerik by Progress
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  5. test
    test avatar
    3 posts
    Member since:
    Nov 2015

    Posted 22 Mar in reply to Elena Tsvetkova Link to this post

    How write the code for capture the screen shots

    I have used the following steps, but every time i am getting the pop-up with "Ok" button. if i click on the ok button only am getting the screen shot.

    If i am have 11 steps.. if i used the below code for 2 steps.. than the remaining steps are not executing. 

    //Log.CaptureBrowser(ActiveBrowser, "Dashboard");

    Other one:
     //ITakeScreenshot ActiveBrowser = null;
     //Screenshot SS = ((ITakeScreenshot)ActiveBrowser).GetScreenshot();
     //SS.Savefile("D:\\Telerik_Test_Studio\\Hudson\\Dashboard.png", System.Drawing.Imaging.ImageFormat.Png);

  6. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    1060 posts

    Posted 25 Mar Link to this post

    Hi,

    Thank you for contacting us with additional details on the faced troubles. 

    As far as I understand you would like to take screenshots at certain moments of the test execution, however you are facing troubles with that. There are few suggestions on the topic I can share with you - and although some of these may not be applicable to cover the current requirements, please take a look at these below: 

    Visual capturing of the browser state - as I noticed you used a coded approach to take screenshots, you may find this useful. 

    Browser and Desktop capture in a test list execution - the test list settings allow you to take screenshots for certain steps, which properties you have modified accordingly. 

    Recording the test list run - recently we implemented a feature, which allows you to record a video of the test list execution. 

    As I am not familiar about all requirements you might have, I hope any of the propositions above will suit your needs. However, if this is not the case, I will need further details for the test you have troubles with. So, please, take some time to share your input on the below notes: 
    - does the test, you have troubles with, contain both recorded and coded steps? 
    - or this is possibly a unit test? 
    - which is the Test Studio version you currently have in use? 
    - can you please elaborate more on the scenario you need to cover? 
    - is the popup with Ok button an expected dialog? 
    - is there a step to handle that one? 
    - it seems the test fails - what is the reason for failure? 
    - can you please share the step failure details or execution log for further investigation? 
    - if you can share a sample test against a public accessible application, I can try to reproduce the same misbehavior on my end. 

    I hope the provided options will be suitable for you. However, in case you need additional assistance, please do not hesitate to get back to me. 

    Regards,
    Elena Tsvetkova
    Progress Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top