- Clone the repo
- Move to the folder RuntimeTest/DrtTests
- Run command '.\Build.cmd'
- Move to the test folder 'cd .\publish\Debug\x86\Test'
- Run the test
.\RunDrts.cmd /name=[NAME] [NAME] : drtwindowscroll or drtwindowfunctionality
In this DRT, we focus on validating the behavior of the ScrollViewer control within the context of a Page's style. The test scenario involves the following application structure: Window -> Page -> ScrollViewer -> Rectangle (figure) To accomplish this, we attach an event handler (OnLoaded) to the Page. When the Page is loaded, this event handler triggers multiple tests to verify the behavior of the content presenter and the visibility of the scroll bar. These tests are conducted with different content sizes, ensuring comprehensive coverage.
We aim to validate different functionalities and behaviors of the Window control and test that setting visibility is async. In this test, we have verified the size and visibility of content in various situation where we changed the size, position and state of the window (Normal, minimized, maximized).!