Hi,
I'm having following doubts
1. How to automate image based test without using recording? Please provide example
2. Is it really necessary to create repo using recording every time? Is there any alternative available?
3. How to avoid co-ordinate based events which get created by recordings?
ex: repo.Open.ButtonOpen.Click("10;4");
Please provide sample code for more understanding
Thanks in advance
How to avoid co-ordinate based events which get created by r
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to avoid co-ordinate based events which get created by r
Hi ask007,
Please find the answers to your questions below.
1) Image Based Automation
Information about image based automation in code modules can be found in our user guide.
Furthermore, I would suggest having a look at the API documentation concerning the Validate.CompareImage() and Validate.ContainsImage() method.
2) Adding Repository Items
UI elements can be added to the repository independently from recording modules. I would recommend having a look at the user guide section about Ranorex Spy.
3) Change Click Location
In order click actions are recorded with the click location 'Center', please change the global setting 'Coordinate recording mode' to 'None'.
I hope this information will help you.
Sincerely,
Johannes
Please find the answers to your questions below.
1) Image Based Automation
Information about image based automation in code modules can be found in our user guide.
Furthermore, I would suggest having a look at the API documentation concerning the Validate.CompareImage() and Validate.ContainsImage() method.
2) Adding Repository Items
UI elements can be added to the repository independently from recording modules. I would recommend having a look at the user guide section about Ranorex Spy.
3) Change Click Location
In order click actions are recorded with the click location 'Center', please change the global setting 'Coordinate recording mode' to 'None'.
I hope this information will help you.
Sincerely,
Johannes
You do not have the required permissions to view the files attached to this post.
Re: How to avoid co-ordinate based events which get created by r
Hi,
Thanks for reverting back. I'm having one doubt as-
Cant we avoid coordinates or rectangle itself?
ex:
CompressedImage Client_Screenshot1
{ get { return imagerepo.Photoshop2.ClientInfo.GetScreenshot1(new Rectangle(144, 81, 11, 15));
}
}
How same rectangle coordinates works with diff type of screens?
Thanks for reverting back. I'm having one doubt as-
Cant we avoid coordinates or rectangle itself?
ex:
CompressedImage Client_Screenshot1
{ get { return imagerepo.Photoshop2.ClientInfo.GetScreenshot1(new Rectangle(144, 81, 11, 15));
}
}
How same rectangle coordinates works with diff type of screens?
Support Team wrote:Hi ask007,
Please find the answers to your questions below.
1) Image Based Automation
Information about image based automation in code modules can be found in our user guide.
Furthermore, I would suggest having a look at the API documentation concerning the Validate.CompareImage() and Validate.ContainsImage() method.
2) Adding Repository Items
UI elements can be added to the repository independently from recording modules. I would recommend having a look at the user guide section about Ranorex Spy.
3) Change Click Location
In order click actions are recorded with the click location 'Center', please change the global setting 'Coordinate recording mode' to 'None'.
I hope this information will help you.
Sincerely,
Johannes
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to avoid co-ordinate based events which get created by r
Hi ask007,
The Rectangle object is needed for image based validation in order to know which part of the image needs to be considered.
Please note that if you perform image based automation/validation, you have to make sure that color and resolution settings are the same as on the machine you made the test/recording on.
If you need more information, please do let me know.
Sincerely,
Johannes
The Rectangle object is needed for image based validation in order to know which part of the image needs to be considered.
Please note that if you perform image based automation/validation, you have to make sure that color and resolution settings are the same as on the machine you made the test/recording on.
If you need more information, please do let me know.
Sincerely,
Johannes