Forum Discussion

asmat_786's avatar
asmat_786
New Contributor
12 years ago

I am getting JScript run time error when objImage.Check method is used .

I am using objBaseImage.Check() to compare images and getting JScript runtime error .

I want to check Actual image with base line image .My baseline Images are stored at some location and are not in Stores | Region . Therefore i cannot use the Region Checkpoint .



  



  
  • Hi Asmat.



    Could you post a bit more of the code you are using so we could help you ?



    If you are trying to compare a runtime object picture, I would suggest that you use something like that :



    boolean = RunTimeObject.Picture().Compare(Utils.Picture.LoadFromFile("PathToBaseLine")).



    Source : http://support.smartbear.com/viewarticle/30650/



  • Hi Asmat.



    Could you post a bit more of the code you are using so we could help you ?



    If you are trying to compare a runtime object picture, I would suggest that you use something like that :



    boolean = RunTimeObject.Picture().Compare(Utils.Picture.LoadFromFile("PathToBaseLine")).



    Source : http://support.smartbear.com/viewarticle/30650/



  • asmat_786's avatar
    asmat_786
    New Contributor
    Hi MGDIS TIA ,



    Thanks for the soluntion . I have already found some work around for the problem .



    Regards ,

    Asmat .