Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj =================================================================== diff -u -r1b6a7bad1621a0937cb51c467054d17bb7f636e8 -rb64b54981a93c7d46159aee6a4cfc596d88ba6ea --- System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj (.../AutomatedSystemTests.csproj) (revision 1b6a7bad1621a0937cb51c467054d17bb7f636e8) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj (.../AutomatedSystemTests.csproj) (revision b64b54981a93c7d46159aee6a4cfc596d88ba6ea) @@ -180,6 +180,18 @@ c994b796-1f44-4bb2-92c0-427faf4c7a4b 9a604b1c-d4af-4820-b692-4d7137157976 + + f830e27d-7f5a-4f9e-8dc1-9fedc7268086 + AddHRDFile.rxrec + true + 6d7b6711-578c-416f-a26b-91b8c6d90fa0 + + + f830e27d-7f5a-4f9e-8dc1-9fedc7268086 + AddHRDFile.rxrec + true + 2e1d72aa-d8f9-450e-a546-cba64e8711c9 + d7c60b9c-8fbb-4ccc-bd81-f49432d1e1fb ImportReferenceLine.rxrec @@ -813,14 +825,14 @@ true 8e242905-1c47-454c-b60d-03ec3266db48 - - CoupleCurrentItemToHBCDatabase.rxrec + + SelectHLCDFile.rxrec true 5141321a-4613-4ce7-8034-421c443b4402 58bb17f9-0f73-4d80-84ed-fec70eb3207f - - CoupleCurrentItemToHBCDatabase.rxrec + + SelectHLCDFile.rxrec true 79a6a4d1-4e9c-4369-9783-f1a62eb698b6 58bb17f9-0f73-4d80-84ed-fec70eb3207f @@ -1845,6 +1857,11 @@ 9a604b1c-d4af-4820-b692-4d7137157976 46407bea-c0f2-409e-8831-e2e674d7fad1 + + 8b6648ca-2429-462f-8074-96184700bbed + f830e27d-7f5a-4f9e-8dc1-9fedc7268086 + e9443dc8-83ae-41cf-a26f-36e5dbd3e114 + 8b6648ca-2429-462f-8074-96184700bbed d7c60b9c-8fbb-4ccc-bd81-f49432d1e1fb @@ -2070,7 +2087,7 @@ 9441f05b-a115-4956-80b5-b0c4190b783c c09a9669-9b00-4ab5-9134-5658e1a585ac - + 8b6648ca-2429-462f-8074-96184700bbed 58bb17f9-0f73-4d80-84ed-fec70eb3207f 354b1a8c-c247-4b13-920b-24ee0b2b997d Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTestsRepository.cs =================================================================== diff -u -r1b6a7bad1621a0937cb51c467054d17bb7f636e8 -rb64b54981a93c7d46159aee6a4cfc596d88ba6ea --- System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTestsRepository.cs (.../AutomatedSystemTestsRepository.cs) (revision 1b6a7bad1621a0937cb51c467054d17bb7f636e8) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTestsRepository.cs (.../AutomatedSystemTestsRepository.cs) (revision b64b54981a93c7d46159aee6a4cfc596d88ba6ea) @@ -3637,6 +3637,8 @@ RepoItemInfo _inassemblyInfo; RepoItemInfo _koppelaandatabaseInfo; RepoItemInfo _maptoevoegenInfo; + RepoItemInfo _selecteerhlcdbestandInfo; + RepoItemInfo _hrdbestandtoevoegenInfo; RepoItemInfo _mapleegmakenInfo; RepoItemInfo _openenInfo; RepoItemInfo _selecterenInfo; @@ -3668,6 +3670,8 @@ _inassemblyInfo = new RepoItemInfo(this, "InAssembly", "menuitem[@accessiblename='In assemblage']", "", 30000, null, "561b2d91-62ad-4174-97e3-b9f7420df49a"); _koppelaandatabaseInfo = new RepoItemInfo(this, "KoppelAanDatabase", "menuitem[@accessiblename='Koppel aan database...']", "", 30000, null, "b67d9db7-c97a-44ee-9cc6-3cac1b3aa092"); _maptoevoegenInfo = new RepoItemInfo(this, "MapToevoegen", "menuitem[@accessiblename='Map toevoegen']", "", 30000, null, "bb08d163-934b-43d2-b55e-ba2f9cd39c14"); + _selecteerhlcdbestandInfo = new RepoItemInfo(this, "SelecteerHLCDBestand", "menuitem[@accessiblename='Selecteer HLCD bestand...']", "", 30000, null, "7dc068b1-4029-42ff-9b2c-646a00332fd6"); + _hrdbestandtoevoegenInfo = new RepoItemInfo(this, "HRDBestandToevoegen", "menuitem[@accessiblename>'HRD bestand toevoegen']", "", 30000, null, "ba10414b-7ca5-4d01-96c8-b276df41a5a5"); _mapleegmakenInfo = new RepoItemInfo(this, "MapLeegmaken", "menuitem[@accessiblename='Map leegmaken...']", "", 30000, null, "ca583eef-300b-420e-8edd-95c3ffd4cb61"); _openenInfo = new RepoItemInfo(this, "Openen", "menuitem[@accessiblename='Openen']", "", 30000, null, "3162063a-bd8d-4e48-b6ab-9725baa70e0e"); _selecterenInfo = new RepoItemInfo(this, "Selecteren", "menuitem[@accessiblename>'Selecteren']", "", 30000, null, "03d52c3a-96d4-4dbb-b708-72ad8a755d65"); @@ -4087,6 +4091,54 @@ } /// + /// The SelecteerHLCDBestand item. + /// + [RepositoryItem("7dc068b1-4029-42ff-9b2c-646a00332fd6")] + public virtual Ranorex.MenuItem SelecteerHLCDBestand + { + get + { + return _selecteerhlcdbestandInfo.CreateAdapter(true); + } + } + + /// + /// The SelecteerHLCDBestand item info. + /// + [RepositoryItemInfo("7dc068b1-4029-42ff-9b2c-646a00332fd6")] + public virtual RepoItemInfo SelecteerHLCDBestandInfo + { + get + { + return _selecteerhlcdbestandInfo; + } + } + + /// + /// The HRDBestandToevoegen item. + /// + [RepositoryItem("ba10414b-7ca5-4d01-96c8-b276df41a5a5")] + public virtual Ranorex.MenuItem HRDBestandToevoegen + { + get + { + return _hrdbestandtoevoegenInfo.CreateAdapter(true); + } + } + + /// + /// The HRDBestandToevoegen item info. + /// + [RepositoryItemInfo("ba10414b-7ca5-4d01-96c8-b276df41a5a5")] + public virtual RepoItemInfo HRDBestandToevoegenInfo + { + get + { + return _hrdbestandtoevoegenInfo; + } + } + + /// /// The MapLeegmaken item. /// [RepositoryItem("ca583eef-300b-420e-8edd-95c3ffd4cb61")] Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTestsRepository.rximg =================================================================== diff -u -rfc68f52509f6dfddf01bd4a1921dfcb2cdc6dfc5 -rb64b54981a93c7d46159aee6a4cfc596d88ba6ea Binary files differ Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTestsRepository.rxrep =================================================================== diff -u -r79847104da13a53f00302b7d3f51c3caad9d0a60 -rb64b54981a93c7d46159aee6a4cfc596d88ba6ea --- System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTestsRepository.rxrep (.../AutomatedSystemTestsRepository.rxrep) (revision 79847104da13a53f00302b7d3f51c3caad9d0a60) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTestsRepository.rxrep (.../AutomatedSystemTestsRepository.rxrep) (revision b64b54981a93c7d46159aee6a4cfc596d88ba6ea) @@ -43,13 +43,15 @@ id="c6e3307d-ef2f-4a61-bf7b-443c02d22136" name="GenericItemInTraject" refimgid="c33e2959-1eb3-434f-9ba5-7449b06b1808" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/*/*/container/container[@instance='0']/container[@controlname='ProjectExplorer']//tree[@controlname='treeView']/tree[@accessiblerole='Outline']/treeitem[1]/treeitem[@accessiblename=$substringNameItemInTraject] /form[@automationid='RiskeerMainWindow']/*/*/container/container[@instance='0']/container[@controlname='ProjectExplorer']//tree[@controlname='treeView']/tree[@accessiblerole='Outline']/treeitem[1]//treeitem[@hasfocus='true'] @@ -74,6 +76,7 @@ id="8ca7d8de-6c3a-48cd-98e3-444ddf09e011" name="Bestand" refimgid="7e47a659-c52c-45ba-a6c7-9f6115204406" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/menubar/?/?/text[@caption='Bestand'] @@ -83,6 +86,7 @@ id="85528b1e-84f6-40a9-b2b7-58d99c5ad909" name="ButtonMenuFileSaveProjectAs" refimgid="386f5558-51e7-4270-8861-ff555ad58d1c" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/menubar/?/?/button[@automationid='ButtonMenuFileSaveProjectAs'] @@ -111,6 +115,7 @@ id="79aa5f18-da55-4d5b-9c7c-bc833052d329" name="ViewCloseButton" refimgid="db245c00-dff8-4d3c-aafb-9cbcb5b3a1cb" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container[11]/?/?/button[@automationid='MenuDropDownButton']/?/tabpage/button[@automationid='DocumentCloseButton'] @@ -120,6 +125,7 @@ id="71969c09-ef02-4547-bddc-6e74e1272049" name="textHeaderPanel" refimgid="eb4a8025-5cf6-4dd3-9fec-2688dceb885e" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container[11]/?/?/button[@automationid='MenuDropDownButton']/container[@automationid='HeaderPanel']/tabpage/?/text[@text>$nameMap] @@ -148,6 +154,7 @@ id="4f6147c7-b35a-42d1-8fdd-175372b09979" name="GenericCellMessage" refimgid="85d13c99-8b90-49f2-b235-29cc95822cea" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container/container[@controlname='MessageWindow']/table[@controlname='messagesDataGridView']/row[@accessiblename<' '+$indexRowMessage]/cell[@accessiblename>'Bericht'] @@ -168,6 +175,7 @@ id="073038e2-924e-4a9e-b82b-1d992e9dd9ce" name="LastCellMessage" refimgid="85d13c99-8b90-49f2-b235-29cc95822cea" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container/container[@controlname='MessageWindow']/table[@controlname='messagesDataGridView']/row[@accessiblename<' 0']/cell[@accessiblename>'Bericht'] @@ -199,6 +207,7 @@ id="fa26997c-4865-408a-9bd8-120810ae0e7a" name="GenericParameterVisibleInPropertiesPanel" refimgid="b10e19f9-7815-4f72-bde5-ded05eaaa1a8" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@controltypename='WinFormsAdapter']/container[@controlname='PropertiesPanelGridView']//table/row[@accessiblename>$nameOfParameterInPropertiesPanel] @@ -245,6 +254,7 @@ capname="cell" id="6bff70d7-1d04-4660-85f8-51b7cf611f85" name="IsRelevant" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname~'FailureMechanismResultView']/container/table[@controlname='dataGridView']/row[$rowIndex]/cell[@accessiblename>'Is relevant'] @@ -253,6 +263,7 @@ id="7db3fc24-802e-4db9-b1c2-16851d487012" name="genericCell" refimgid="74395883-b3bf-48bf-9f83-cf130cb89a19" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname~'FailureMechanismResultView']/container[@controlname='TableLayoutPanel']/text/text @@ -292,6 +304,7 @@ id="8a65568d-140f-4c4f-b21d-a105a8285816" name="ExpandDropDownMenu" refimgid="dea0a4fb-3797-4b3d-b25c-a6c5305bcf98" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname~'FailureMechanismResultView']/container[@controlname='TableLayoutPanel']/combobox[@controlname='probabilityResultTypeComboBox']/button @@ -319,6 +332,7 @@ id="2a83bf46-5edd-4e88-9563-1ac9454c5af8" name="GenericAssessmentSectionBoundaryCell" refimgid="38fb642d-8c44-4bc4-a95e-ac1550e74f82" + robustPath="" searchtimeout="10000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname='AssessmentSectionAssemblyGroupsView']/container[@controlname='assemblyGroupsTable']/table[@controlname='dataGridView']/row[@accessiblevalue>$categoryName+';']/cell[@accessiblename>$boundaryTypeSubstring] @@ -342,6 +356,7 @@ capname="table" id="171d18ca-9186-4ec9-b2fb-d120854d5a24" name="TableDuidingsklassen" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname='FailureMechanismSectionAssemblyGroupsView']//table @@ -384,6 +399,7 @@ capname="cell" id="e735dd8e-d20c-4c5b-ab38-5962b37b89cc" name="WaterLevelOrWaveHeightNthRow" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname~'CalculationsView']/container/container[@controlname='panel1']/container/table/row[@accessiblename<' '+$rowIndex]/cell[@accessiblename>'Waterstand' or @accessiblename>'Golfhoogte'] @@ -408,6 +424,7 @@ id="705925a9-d286-4eed-8f22-23a9e3afce1c" name="CalculateSelectedButton" refimgid="ba5af28f-bcce-4282-b479-4b08a62225bd" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname~'CalculationsView']/container/container[@controlname='panel1']/container[@controlname>'Button']/button[@controlname='CalculateForSelectedButton'] @@ -443,6 +460,7 @@ capname="listitem" id="f3f7de84-f41c-4188-9eff-d19414f68a60" name="GenericSection" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname~'ScenariosView']/container/container/?/list/list/listitem[@index=$indexSection] @@ -462,6 +480,7 @@ capname="cell" id="3476c0a3-36a4-4281-90a3-065844674eb8" name="GenericRowContribution" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname~'ScenariosView']/container/container/container/container/table/row[@accessiblename='Row 0']/cell[@accessiblename>'Bijdrage aanscenario[%]'] @@ -492,13 +511,15 @@ capname="row" id="c8521886-54a9-407d-94d4-a646a9c0f68e" name="GenericRowHydraulicBCDunes" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname>'Dune']/container/table/row[@accessiblename<' '+$indexRow] /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname>'Dune']/container/table/row[@accessiblename<' '+$rowIndex]/cell[@accessiblename>'Rekenwaarde waterstand'] @@ -519,6 +540,7 @@ id="c5d97332-76d8-4900-be29-cdffe99cbf99" name="CalculateForSelectedButton" refimgid="d609c052-4854-4151-bece-1434d8df9ce5" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname>'Dune']/container[@controlname>'Button']/button[@controlname='CalculateForSelectedButton'] @@ -536,6 +558,7 @@ id="e1c75820-980f-411c-9ada-a9dcd59572ae" name="FMSectionsViewTable" refimgid="0c3dda7b-fc8d-4d81-90cb-b69e67b32fc5" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname~'SectionsView']/?/table @@ -562,6 +585,7 @@ name="GroupLabel" refimgid="73e8e71a-615c-40ab-a491-def024b12128" refpath="/form[@automationid='RiskeerMainWindow']/container[@caption='']/container[4]/container[9]/container[@caption='']/container[@controlname='AssemblyResultTotalView']/container[@controlname='assessmentSectionAssemblyControl']/container[@controlname='resultLayoutPanel']/text[@controlname='groupLabel']" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname='AssemblyResultTotalView']/container/container/text[@controlname='groupLabel'] @@ -637,6 +661,7 @@ id="84e8db46-22cb-4998-a061-4a0b52815ee7" name="GenericCell" refimgid="e6f04d45-5018-46d5-ab95-911e5c9e48ce" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname='CalculationsView']//table/row[@accessiblename='Row '+$indexRowCalculation]/cell[@accessiblename>$nameColumn] @@ -656,6 +681,7 @@ capname="table" id="4036b6f4-d12d-47b5-9c7f-3897f5b573bd" name="SecurityCategoriesViewTable" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container[4]/container/container[@instance='1' and @controltypename='WinFormsAdapter']/container[@controlname='AssessmentSectionAssemblyGroupsView']/?/?/table @@ -706,6 +732,7 @@ id="ce11034c-12e0-4686-8388-75ac745d1755" name="CloseButtonGenericContainerMap" refimgid="4fb8aa03-a345-43ce-8877-7037da92a8cc" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container/container/container/tabpagelist[$indexContainerMap]/button/tabpage/button @@ -719,6 +746,7 @@ id="e1c99c99-37e6-45b7-8ef7-3177828972c0" name="TextLabelPanelOnLeft" refimgid="51917487-9afd-4e25-bfb6-bb36e7475531" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/container/container/tabpagelist/container[@automationid='HeaderPanel']/tabpage/text[@text=$nameOfPanel] @@ -736,6 +764,7 @@ id="10758b46-d10f-46af-883e-9629a38c517a" name="GenericRibbonButton" refimgid="b966d0a7-39df-499c-845c-63269d637e35" + robustPath="" searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/?/?/container[@automationid='MainButtonStackPanel']/button/text[@caption~$stateName]/parent::button @@ -773,6 +802,7 @@ name="AllesBerekenen" refimgid="c5fd86c0-01fb-4e8f-a0ca-35bb01f08598" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Alles berekenen']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Alles berekenen'] @@ -782,6 +812,7 @@ id="909957a0-8645-4c4e-9153-757dbd6962c4" name="AllesUitklappen" refimgid="92c52544-154e-46aa-92e9-418e60b10aa6" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@text='Alles uitklappen'] @@ -792,6 +823,7 @@ name="AllesValideren" refimgid="08ad4924-3d24-41ce-9b9f-af28301cc311" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Alles valideren']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Alles valideren'] @@ -802,6 +834,7 @@ name="Berekenen" refimgid="11c1d52f-3062-4347-95c6-24fb6b77e845" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Berekenen']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Berekenen'] @@ -811,6 +844,7 @@ id="a538b968-f904-4d07-a69c-e87f3bb3d12b" name="BerekeningToevoegen" refimgid="11c1d52f-3062-4347-95c6-24fb6b77e845" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Berekening toevoegen'] @@ -820,6 +854,7 @@ id="10ff5289-4c15-4670-ac30-51057b2dc94a" name="SemiProbBerekeningToevoegen" refimgid="11c1d52f-3062-4347-95c6-24fb6b77e845" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Semi-probabilistische berekening toevoegen'] @@ -829,6 +864,7 @@ id="ed5b1a57-0234-4bee-b8d5-a91968b5905f" name="ProbBerekeningToevoegen" refimgid="11c1d52f-3062-4347-95c6-24fb6b77e845" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Probabilistische berekening toevoegen'] @@ -839,6 +875,7 @@ name="Bijwerken" refimgid="701155c2-8867-4559-802c-2d50303a6619" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Bijwerken...']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Bijwerken...'] @@ -849,6 +886,7 @@ name="Dupliceren" refimgid="b5df8c96-3b41-4141-a76c-5e773bef3912" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Dupliceren']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Dupliceren'] @@ -859,6 +897,7 @@ name="Exporteren" refimgid="8e2d6d0d-4dbf-4acc-979b-6f4008e87869" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Exporteren...']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Exporteren...'] @@ -868,6 +907,7 @@ id="17056c41-6629-4a0e-8ab2-93470db9fa27" name="GenereerCalculationAndScenarios" refimgid="24449bf2-cce5-4210-a8ea-314d001a202a" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename>'Genereer'] @@ -877,6 +917,7 @@ id="39eb92d8-2056-4218-88eb-8b21c0ab477e" name="GenericItemInContextMenu" refimgid="24449bf2-cce5-4210-a8ea-314d001a202a" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename>$nameOfItem] @@ -887,6 +928,7 @@ name="Importeren" refimgid="7a47e2e9-40db-4c3b-9cf3-5b225985f743" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Importeren...']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Importeren...'] @@ -896,6 +938,7 @@ id="561b2d91-62ad-4174-97e3-b9f7420df49a" name="InAssembly" refimgid="6c6af78e-afc4-4f5f-af81-b20852597810" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='In assemblage'] @@ -906,6 +949,7 @@ name="KoppelAanDatabase" refimgid="36ae6201-95fe-41df-af4a-3ce021058f07" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Koppel aan database...']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Koppel aan database...'] @@ -916,16 +960,38 @@ name="MapToevoegen" refimgid="2d7e56dd-3a4b-4f0c-82bc-aed498fcb835" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Map toevoegen']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Map toevoegen'] + /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Selecteer HLCD bestand...'] + + + /contextmenu[@processname='Riskeer']/menuitem[@accessiblename>'HRD bestand toevoegen'] + + /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Map leegmaken...'] @@ -936,6 +1002,7 @@ name="Openen" refimgid="3909d8e4-daf2-4c63-bcbd-c09567400fad" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Openen']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Openen'] @@ -945,6 +1012,7 @@ id="03d52c3a-96d4-4dbb-b708-72ad8a755d65" name="Selecteren" refimgid="88695737-d00f-4307-adfb-01a4c3ba65b4" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename>'Selecteren'] @@ -955,6 +1023,7 @@ name="Verwijderen" refimgid="6e2ec83e-6f27-45a8-b58c-743fa28aa8cd" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Verwijderen...']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Verwijderen...'] @@ -964,6 +1033,7 @@ id="9bd893d7-2683-465a-b2e3-d056bce01a0c" name="VoegKaartlaagToe" refimgid="6e2ec83e-6f27-45a8-b58c-743fa28aa8cd" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Voeg kaartlaag toe...'] @@ -974,6 +1044,7 @@ name="WisAlleUitvoer" refimgid="4e16bc94-ee98-4d14-be4c-0c68555580e4" refpath="/contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Wis alle uitvoer...']" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Wis alle uitvoer...'] @@ -983,6 +1054,7 @@ id="5acc1275-2883-4570-affa-a36a1d5dd4df" name="ZoomNaarAlles" refimgid="c27b49a6-45d7-4acf-b75a-9902052e55e9" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Zoom naar alles'] @@ -992,6 +1064,7 @@ id="3ebcc52e-31c4-467c-b814-ed00988e981f" name="NewVerticalTabGroup" refimgid="2c3d882a-6795-4f54-8828-02a2a50d2404" + robustPath="" searchtimeout="30000ms"> /contextmenu[@processname='Riskeer']/?/?/text[@caption~'ertical'] @@ -1069,6 +1142,7 @@ name="ButtonNo" refimgid="fedd381d-7387-40df-b583-ce17db1bdff5" refpath="/form[@title='Project afsluiten']/button[@text='&No']" + robustPath="" searchtimeout="30000ms"> /form[@title='Project afsluiten']/button[@text='&No'] @@ -1101,6 +1175,7 @@ id="626cf7e9-229f-443b-8711-8359ac8e9d95" name="ProgressBar" refimgid="73e2b350-8cc8-4194-977c-a4ee62cbfb80" + robustPath="" searchtimeout="30000ms"> /form[@controlname='ActivityProgressDialog']/progressbar[@controlname='progressBar'] @@ -1111,6 +1186,7 @@ name="ButtonCancel" refimgid="11cb0b1f-2749-46f6-931f-6dff767be6b6" refpath="/form[@controlname='ActivityProgressDialog']/button[@controlname='buttonCancel']" + robustPath="" searchtimeout="30000ms"> /form[@controlname='ActivityProgressDialog']/button[@controlname='buttonCancel'] @@ -1121,6 +1197,7 @@ name="LabelActivityStepCounter" refimgid="746c79e5-beba-443e-bbd7-a96d590e9951" refpath="/form[@controlname='ActivityProgressDialog']/text[@controlname='labelActivityProgressText']" + robustPath="" searchtimeout="30000ms"> /form[@controlname='ActivityProgressDialog']/text[@controlname='labelActivityProgressText'] @@ -1131,6 +1208,7 @@ name="LabelActivityTaskCounter" refimgid="5b0cfa9e-cf06-4acb-8430-e4a7c2690370" refpath="/form[@controlname='ActivityProgressDialog']/text[@controlname='labelActivityCounter']" + robustPath="" searchtimeout="30000ms"> /form[@controlname='ActivityProgressDialog']/text[@controlname='labelActivityCounter'] @@ -1161,6 +1239,7 @@ id="29c5aee0-b248-4a91-82b3-a8a9f8f7382e" name="SaveAsFileName" refimgid="2962c325-4d60-46fa-9775-24f321f2646e" + robustPath="" searchtimeout="30000ms"> /form[@title='Opslaan als']/element[@class='DUIViewWndClassName']//combobox[@class='ComboBox']/text[@accessiblename='File name:'] @@ -1170,6 +1249,7 @@ id="d1a05174-5318-4647-9db3-00a286f95fbc" name="SaveButton" refimgid="c674c8c6-3b5d-4b3a-a967-2466d8473da1" + robustPath="" searchtimeout="30000ms"> /form[@title='Opslaan als']/button[@text='&Save'] @@ -1198,6 +1278,7 @@ id="ac0a8e2f-9815-493c-bc5f-c81dcf12d652" name="ButtonYes" refimgid="ee6faec7-8bdd-42ac-859f-c1ab5a4bb273" + robustPath="" searchtimeout="3000ms"> /form[@title='Confirm Save As']//button[@text='&Yes'] @@ -1215,6 +1296,7 @@ id="81ebade6-6648-4b3b-a974-22ccbf15c7dc" name="GenericDropDownItem" refimgid="12cca8c5-4c6c-4abc-b493-f41674b8275f" + robustPath="" searchtimeout="5000ms"> /list[@controlid='1000']/listitem[@text=$textItemDropDownMenu] @@ -1225,6 +1307,7 @@ name="WebMapTileServiceWMTS" refimgid="24c03ccc-b16b-453e-8c0d-f04b53508dc3" refpath="/list[@controlid='1000']/listitem[@text>'Web Map Tile Service (WMT']" + robustPath="" searchtimeout="30000ms"> /list[@controlid='1000']/listitem[@text>'Web Map Tile Service (WMT'] @@ -1300,6 +1383,7 @@ id="f1bdec4b-e243-4cfe-8459-731408c338d4" name="NormRadioButton" refimgid="d9dba1c3-c9d5-4736-b106-9043de8684c3" + robustPath="" searchtimeout="30000ms"> /form[@controlname='ReferenceLineMetaSelectionDialog']/container/container/radiobutton[@controlname>$normType] @@ -1309,6 +1393,7 @@ id="ce4cea6f-cbb0-4c97-a077-14d79e60ca7d" name="ButtonOk" refimgid="9d721ab0-ebb6-4cd2-9318-a983f178689c" + robustPath="" searchtimeout="30000ms"> /form[@controlname='ReferenceLineMetaSelectionDialog']/container/container/button[@controlname='Ok'] @@ -1333,20 +1418,23 @@ capname="cell" id="9398ea14-bc10-44f5-b61a-a281f098ba05" name="CellTrajectId" + robustPath="" searchtimeout="30000ms"> /form[@controlname='ReferenceLineMetaSelectionDialog']/?/?/container[@controlname='ReferenceLineMetaDataGridViewControl']/table[@controlname='dataGridView']/row[@accessiblevalue>$trajectID]/cell[2] /form[@controlname='ReferenceLineMetaSelectionDialog']/?/?/container[@controlname='ReferenceLineMetaDataGridViewControl']/table[@controlname='dataGridView']/row[@accessiblevalue>$trajectID]/cell[3] /form[@controlname='ReferenceLineMetaSelectionDialog']/?/?/container[@controlname='ReferenceLineMetaDataGridViewControl']/table[@controlname='dataGridView']/row[@accessiblevalue>$trajectID]/cell[4] @@ -1384,6 +1472,7 @@ name="FileNameField" refimgid="b5543e14-742e-43eb-a837-8dbb93159a2a" refpath="/form[@title='Openen']/combobox[@controlid='1148']/text[@controlid='1148']" + robustPath="" searchtimeout="30000ms"> /form[@title='Openen']/?/?/text[@controlid='1148'] @@ -1394,6 +1483,7 @@ name="ButtonOpen" refimgid="27cf8816-f365-4e65-bf37-9ed1d7f5e726" refpath="/form[@title='Openen']/button[@text='&Open']" + robustPath="" searchtimeout="30000ms"> /form[@title='Openen']/button[@text='&Open'] @@ -1432,6 +1522,7 @@ id="407fae09-698f-4177-8f27-47a238018ac5" name="UseCellRowIndexth" refimgid="48232b9f-79a0-44ed-8d11-7c3c104cc5cb" + robustPath="" searchtimeout="30000ms"> /form[@controlname~'SelectionDialog']/container[@controlname='ButtonGroupBox']/container//table/row[@accessiblename~' '+$indexRow]/cell[@accessiblename>'Gebruik'] @@ -1445,6 +1536,7 @@ id="eb4e6139-e00a-44c2-9e0d-344eeed26fd7" name="GenerateButton" refimgid="cd642f45-a153-4427-a178-331abd3f56c1" + robustPath="" searchtimeout="30000ms"> /form[@controlname~'SelectionDialog']/container/button[@controlname='DoForSelectedButton'] @@ -1454,6 +1546,7 @@ id="66fd60b5-d7a8-43eb-82cb-e4707b8474de" name="SelectAllButton" refimgid="f43f6a31-512f-466a-8850-7b899e38fe4f" + robustPath="" searchtimeout="30000ms"> /form[@controlname~'SelectionDialog']/container[@controlname='ButtonGroupBox']/?/?/button[@controlname='SelectAllButton'] @@ -1491,6 +1584,7 @@ id="532ede54-3f03-4afe-896f-36f3614c200b" name="genericItemInDropDownList" refimgid="62433fd8-be69-462a-b9e9-57408fa79415" + robustPath="" searchtimeout="30000ms"> /form[@title='']/?/?/list[@accessiblerole='List']/listitem[@accessiblename~$newValueForParameter] @@ -1531,6 +1625,7 @@ name="ButtonOK" refimgid="861c3fd0-bc0e-4c2d-9251-5f6390805f4c" refpath="/form[@title='Bevestigen']/button[@text='OK']" + robustPath="" searchtimeout="30000ms"> /form[@title='Bevestigen']/button[@text='OK'] @@ -1563,6 +1658,7 @@ id="ab9a410e-84e4-4d83-aeb5-0574bad1c88e" name="OptionCSV" refimgid="3113f491-1c50-469b-96d1-c48c1ada2ac3" + robustPath="" searchtimeout="30000ms"> /form[@controlname='SelectItemDialog']/list/listitem[@text<'*.csv)'] @@ -1573,6 +1669,7 @@ name="ButtonOk" refimgid="c0523d75-7808-4f55-b7d9-84e30c80abca" refpath="/form[@controlname='SelectItemDialog']/button[@controlname='buttonOk']" + robustPath="" searchtimeout="30000ms"> /form[@controlname='SelectItemDialog']/button[@controlname='buttonOk'] @@ -1583,6 +1680,7 @@ name="RiskeerBerekeningenconfiguratieAsteri" refimgid="192bb90b-5f6e-45e4-8569-422f5c64c941" refpath="/form[@controlname='SelectItemDialog']/list/listitem[@text>'Riskeer berekeningenconfiguratie']" + robustPath="" searchtimeout="30000ms"> /form[@controlname='SelectItemDialog']/list/listitem[@text>'Riskeer berekeningenconfiguratie'] @@ -1612,6 +1710,7 @@ name="FileNameField" refimgid="7ddc0ddc-89a2-427a-a9a6-739f4d236898" refpath="/form[@title='Openen']/combobox[@controlid='1148']/text[@controlid='1148']" + robustPath="" searchtimeout="30000ms"> /form[@title='Openen']/?/?/text[@controlid='1148'] @@ -1622,6 +1721,7 @@ name="ButtonOpen" refimgid="ddcb4a10-d905-4e3a-80e6-db0c94dc7fc6" refpath="/form[@title='Openen']/button[@text='&Open']" + robustPath="" searchtimeout="30000ms"> /form[@title='Openen']/button[@text='&Open'] @@ -1654,6 +1754,7 @@ id="1003af8e-9e10-4fa3-9036-19f31d7713b9" name="ButtonOpen" refimgid="2cf87765-e788-495e-aebd-595b6f4af89b" + robustPath="" searchtimeout="30000ms"> /form[@title='Bestand openen' or @title='Bestand Openen' or @title='Open File' or @title='Open file']/button[@text='&Open'] @@ -1663,6 +1764,7 @@ id="88a4a7e6-e1ab-4778-871a-63b4fc5f59ae" name="FileNameField" refimgid="8e14b8b6-d6b8-473f-9a59-4ff87f2bbf41" + robustPath="" searchtimeout="30000ms"> /form[@title='Bestand openen' or @title='Bestand Openen' or @title='Open File' or @title='Open file']/?/combobox/text @@ -1695,6 +1797,7 @@ id="d0b3af51-09f6-49fb-89b1-52aafe114381" name="Row0" refimgid="d45de4fe-b912-4673-9742-101cc0021c88" + robustPath="" searchtimeout="30000ms"> /form[@controlname='BackgroundMapDataSelectionDialog']/?/?/container[@controlname='propertiesGroupBox']//table[@controlname='dataGridView']/row[2]/cell[1] @@ -1714,6 +1817,7 @@ name="CancelButton" refimgid="14e82ebd-1f3e-4019-bf32-2407c40efac3" refpath="/form[@controlname='BackgroundMapDataSelectionDialog']/container[@controlname='tableLayoutPanel1']/container[@controlname='flowLayoutPanel1']/button[@controlname='cancelButton']" + robustPath="" searchtimeout="30000ms"> /form[@controlname='BackgroundMapDataSelectionDialog']/container[@controlname='tableLayoutPanel1']/?/?/button[@controlname='cancelButton'] @@ -1724,6 +1828,7 @@ name="ConnectToButton" refimgid="bf06e489-820f-49cc-b42e-74db30238369" refpath="/form[@controlname='BackgroundMapDataSelectionDialog']/container/container[@controlname='propertiesGroupBox']/container/container/container[@controlname='flowLayoutPanel2']/button[@controlname='connectToButton']" + robustPath="" searchtimeout="30000ms"> /form[@controlname='BackgroundMapDataSelectionDialog']/container[@controlname='tableLayoutPanel1']/container[@controlname='propertiesGroupBox']//button[@controlname='connectToButton'] @@ -1734,6 +1839,7 @@ name="MapLayerComboBox" refimgid="24ee7590-ebfc-448a-bbee-34bbf220500d" refpath="/form[@controlname='BackgroundMapDataSelectionDialog']/container/container[@controlname='flowLayoutPanel2']/combobox[@controlname='mapLayerComboBox']" + robustPath="" searchtimeout="30000ms"> /form[@controlname='BackgroundMapDataSelectionDialog']/container[@controlname='tableLayoutPanel1']/?/?/combobox[@controlname='mapLayerComboBox'] @@ -1744,6 +1850,7 @@ name="SelectButton" refimgid="e0e96040-6181-41eb-b932-c87877143e9b" refpath="/form[@controlname='BackgroundMapDataSelectionDialog']/container/container[@controlname='flowLayoutPanel1']/button[@controlname='selectButton']" + robustPath="" searchtimeout="30000ms"> /form[@controlname='BackgroundMapDataSelectionDialog']/container[@controlname='tableLayoutPanel1']/?/?/button[@controlname='selectButton'] @@ -1778,6 +1885,7 @@ name="ButtonOK" refimgid="aac118c7-e893-4e93-9377-f48e535de62f" refpath="/form[@title='Fout']/button[@text='OK']" + robustPath="" searchtimeout="30000ms"> /form[@title='Fout']/button[@text='OK'] @@ -1811,6 +1919,7 @@ name="CancelButton" refimgid="e20b05c9-385f-4641-b460-fe88beba5810" refpath="/form[@controlname='AssessmentSectionMergeDataProviderDialog']/container/container[@controlname='flowLayoutPanelButtons']/button[@controlname='cancelButton']" + robustPath="" searchtimeout="30000ms"> /form[@controlname='AssessmentSectionMergeDataProviderDialog']/?/?/container[@controlname='flowLayoutPanelButtons']/button[@controlname='cancelButton'] @@ -1828,6 +1937,7 @@ id="67bc4452-c4a1-459b-8ab9-a476e489359f" name="SelectCellGenericRow" refimgid="5b768348-ce22-4f13-a467-1d05bbb53b21" + robustPath="" searchtimeout="30000ms"> /form[@controlname='AssessmentSectionMergeDataProviderDialog']//table[@controlname='dataGridView']/row[@accessiblename~' '+$indexRow]/cell[@accessiblename>'Selecteer'] @@ -1842,6 +1952,7 @@ name="ImportButton" refimgid="bd5ed1a7-097d-4190-ab55-a4c38a02a0f4" refpath="/form[@controlname='AssessmentSectionMergeDataProviderDialog']/container/container[@controlname='flowLayoutPanelButtons']/button[@controlname='importButton']" + robustPath="" searchtimeout="30000ms"> /form[@controlname='AssessmentSectionMergeDataProviderDialog']/?/?/container[@controlname='flowLayoutPanelButtons']/button[@controlname='importButton'] Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/AddHRDFile.UserCode.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/AddHRDFile.UserCode.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/AddHRDFile.UserCode.cs (revision b64b54981a93c7d46159aee6a4cfc596d88ba6ea) @@ -0,0 +1,48 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// This file was automatically generated by RANOREX. +// Your custom recording code should go in this file. +// The designer will only add methods to this file, so your custom code won't be overwritten. +// http://www.ranorex.com +// +/////////////////////////////////////////////////////////////////////////////// + +using System; +using System.IO; +using System.Collections.Generic; +using System.Text; +using System.Text.RegularExpressions; +using System.Drawing; +using System.Threading; +using WinForms = System.Windows.Forms; + +using Ranorex; +using Ranorex.Core; +using Ranorex.Core.Repository; +using Ranorex.Core.Testing; + +namespace AutomatedSystemTests.Modules.ActionsContextMenu +{ + public partial class AddHRDFile + { + /// + /// This method gets called right after the recording has been started. + /// It can be used to execute recording specific initialization code. + /// + private void Init() + { + // Your recording specific initialization code goes here. + } + + public void AddWorkingDirectoryToFileNameIfRelativeFileName() + { + if (fileNameToOpen.Substring(1,2) == @":\") { + // fileNameToOpen has been declared using absolute path + return; + } + // fileNameToOpen has been declared using relative path + fileNameToOpen = Directory.GetCurrentDirectory() + "\\" + fileNameToOpen; + } + + } +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/AddHRDFile.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/AddHRDFile.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/AddHRDFile.cs (revision b64b54981a93c7d46159aee6a4cfc596d88ba6ea) @@ -0,0 +1,131 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// This file was automatically generated by RANOREX. +// DO NOT MODIFY THIS FILE! It is regenerated by the designer. +// All your modifications will be lost! +// http://www.ranorex.com +// +/////////////////////////////////////////////////////////////////////////////// + +using System; +using System.Collections.Generic; +using System.Text; +using System.Text.RegularExpressions; +using System.Drawing; +using System.Threading; +using WinForms = System.Windows.Forms; + +using Ranorex; +using Ranorex.Core; +using Ranorex.Core.Testing; +using Ranorex.Core.Repository; + +namespace AutomatedSystemTests.Modules.ActionsContextMenu +{ +#pragma warning disable 0436 //(CS0436) The type 'type' in 'assembly' conflicts with the imported type 'type2' in 'assembly'. Using the type defined in 'assembly'. + /// + ///The AddHRDFile recording. + /// + [TestModule("e9443dc8-83ae-41cf-a26f-36e5dbd3e114", ModuleType.Recording, 1)] + public partial class AddHRDFile : ITestModule + { + /// + /// Holds an instance of the global::AutomatedSystemTests.AutomatedSystemTestsRepository repository. + /// + public static global::AutomatedSystemTests.AutomatedSystemTestsRepository repo = global::AutomatedSystemTests.AutomatedSystemTestsRepository.Instance; + + static AddHRDFile instance = new AddHRDFile(); + + /// + /// Constructs a new instance. + /// + public AddHRDFile() + { + fileNameToOpen = ""; + } + + /// + /// Gets a static instance of this recording. + /// + public static AddHRDFile Instance + { + get { return instance; } + } + +#region Variables + + string _fileNameToOpen; + + /// + /// Gets or sets the value of variable fileNameToOpen. + /// + [TestVariable("fb8a2c11-63e9-414f-85f9-04a5eb026a9f")] + public string fileNameToOpen + { + get { return _fileNameToOpen; } + set { _fileNameToOpen = value; } + } + +#endregion + + /// + /// Starts the replay of the static recording . + /// + [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] + public static void Start() + { + TestModuleRunner.Run(Instance); + } + + /// + /// Performs the playback of actions in this recording. + /// + /// You should not call this method directly, instead pass the module + /// instance to the method + /// that will in turn invoke this method. + [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] + void ITestModule.Run() + { + Mouse.DefaultMoveTime = 0; + Keyboard.DefaultKeyPressTime = 20; + Delay.SpeedFactor = 0.00; + + Init(); + + Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Apps}'.", new RecordItemIndex(0)); + Keyboard.Press("{Apps}"); + + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ContextMenu.HRDBestandToevoegen' at Center.", repo.ContextMenu.HRDBestandToevoegenInfo, new RecordItemIndex(1)); + repo.ContextMenu.HRDBestandToevoegen.Click(); + + AddWorkingDirectoryToFileNameIfRelativeFileName(); + + Report.Log(ReportLevel.Info, "User", "Name of file to open:", new RecordItemIndex(3)); + + Report.Log(ReportLevel.Info, "User", fileNameToOpen, new RecordItemIndex(4)); + + // Assign file name to open + Report.Log(ReportLevel.Info, "Set value", "Assign file name to open\r\nSetting attribute Text to '$fileNameToOpen' on item 'OpenDialog.FileNameField'.", repo.OpenDialog.FileNameFieldInfo, new RecordItemIndex(5)); + repo.OpenDialog.FileNameField.Element.SetAttributeValue("Text", fileNameToOpen); + + // Click on open button + Report.Log(ReportLevel.Info, "Mouse", "Click on open button\r\nMouse Left Click item 'OpenDialog.ButtonOpen' at Center.", repo.OpenDialog.ButtonOpenInfo, new RecordItemIndex(6)); + repo.OpenDialog.ButtonOpen.Click(); + + // Wait time (1s) so that dialog is started up + Report.Log(ReportLevel.Info, "Delay", "Wait time (1s) so that dialog is started up\r\nWaiting for 300ms.", new RecordItemIndex(7)); + Delay.Duration(300, false); + + Report.Log(ReportLevel.Info, "Wait", "Waiting 30s to not exist. Associated repository item: 'ActivityProgressDialog.ButtonCancel'", repo.ActivityProgressDialog.ButtonCancelInfo, new ActionTimeout(30000), new RecordItemIndex(8)); + repo.ActivityProgressDialog.ButtonCancelInfo.WaitForNotExists(30000); + + Report.Log(ReportLevel.Info, "Delay", "Waiting for 300ms.", new RecordItemIndex(9)); + Delay.Duration(300, false); + + } + +#region Image Feature Data +#endregion + } +#pragma warning restore 0436 +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/AddHRDFile.rxrec =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/AddHRDFile.rxrec (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/AddHRDFile.rxrec (revision b64b54981a93c7d46159aee6a4cfc596d88ba6ea) @@ -0,0 +1,443 @@ + + + + 1 + + + True + + + True + + + 1 + + + True + + + + + + + + + + + + + + + + + + + + + + /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='HRD bestand toevoegen...'] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Assign file name to open + + + + + + + + /form[@title='Openen']/?/?/text[@controlid='1148'] + + + + + + D:\testing\Riskeer\automatisering\4.Trajectinformatie_basis\Project_assemblage_A_B_20-1.risk + + + + + Click on open button + + + + + + + False + + + &Open + + + False + + + Button + + + 1 + + + 597534 + + + 0 + + + 26920 + + + Riskeer + + + RightScrollBar, Left, NoParentNotify + + + Tiled, MaximizeBox, Group, Visible, ChildWindow + + + &Open + + + + + + + + + + + + + + + + + + + + + + + + /form[@title='Openen']/button[@text='&Open'] + + + + + + /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABwTFRgVERwYFhgfHRwhKUUtKSYmKVQ8QDJFZFhpZ2JY +YF9ufJ6GbnWWd19giruLlqOpsbOxa4TC0MGszp6usar/2wBDAR0fHykkKVEtLVGqcmByqqqqqqqq +qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/wAARCAEaARoDASIA +AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA +AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3 +ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm +p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA +AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx +BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK +U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3 +uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDpKKKK +ACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA +KKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAo +oooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACii +igAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKK +ACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA +KKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAo +oooAKKKKACiiigAooooAKKZuPrRuPrQA+imbj60bj60APopm4+tG4+tAD6KZuPrRuPrQA+imbj60 +bj60APopm4+tG4+tAD6KZuPrRuPrQA+imbj60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/FGKAGbaNtPxRi +gBm2jbT8UYoAZto20/FGKAGbaNtPxRigBm2jbT8UYoAZto20/FGKAGbaNtPxRigBm2jbT8UYoAZt +o20/FGKAGbaNtPxRigBm2jbT8UYoAZto20/FGKAGbaNtPxRigBm2jbT8UYoAKKKKACiiigAooooA +KKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAo +oooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACii +igAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKK +ACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA +KKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAo +oooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACii +igAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKK +ACiiigAooooAKKKKACiiigAooooA/9k= + + + + + Wait time (1s) so that dialog is started up + + + + + + + + + + + + /form[@controlname='ActivityProgressDialog']/button[@controlname='buttonCancel'] + + + + + + + + + + + + + + + + + + + + AddHRDFile.UserCode.cs + + + + Fisheye: Tag b64b54981a93c7d46159aee6a4cfc596d88ba6ea refers to a dead (removed) revision in file `System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/CoupleCurrentItemToHBCDatabase.UserCode.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag b64b54981a93c7d46159aee6a4cfc596d88ba6ea refers to a dead (removed) revision in file `System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/CoupleCurrentItemToHBCDatabase.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag b64b54981a93c7d46159aee6a4cfc596d88ba6ea refers to a dead (removed) revision in file `System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/CoupleCurrentItemToHBCDatabase.rxrec'. Fisheye: No comparison available. Pass `N' to diff? Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/SelectHLCDFile.UserCode.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/SelectHLCDFile.UserCode.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/SelectHLCDFile.UserCode.cs (revision b64b54981a93c7d46159aee6a4cfc596d88ba6ea) @@ -0,0 +1,48 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// This file was automatically generated by RANOREX. +// Your custom recording code should go in this file. +// The designer will only add methods to this file, so your custom code won't be overwritten. +// http://www.ranorex.com +// +/////////////////////////////////////////////////////////////////////////////// + +using System; +using System.IO; +using System.Collections.Generic; +using System.Text; +using System.Text.RegularExpressions; +using System.Drawing; +using System.Threading; +using WinForms = System.Windows.Forms; + +using Ranorex; +using Ranorex.Core; +using Ranorex.Core.Repository; +using Ranorex.Core.Testing; + +namespace AutomatedSystemTests.Modules.ActionsContextMenu +{ + public partial class SelectHLCDFile + { + /// + /// This method gets called right after the recording has been started. + /// It can be used to execute recording specific initialization code. + /// + private void Init() + { + // Your recording specific initialization code goes here. + } + + public void AddWorkingDirectoryToFileNameIfRelativeFileName() + { + if (fileNameToOpen.Substring(1,2) == @":\") { + // fileNameToOpen has been declared using absolute path + return; + } + // fileNameToOpen has been declared using relative path + fileNameToOpen = Directory.GetCurrentDirectory() + "\\" + fileNameToOpen; + } + + } +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/SelectHLCDFile.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/SelectHLCDFile.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/SelectHLCDFile.cs (revision b64b54981a93c7d46159aee6a4cfc596d88ba6ea) @@ -0,0 +1,131 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// This file was automatically generated by RANOREX. +// DO NOT MODIFY THIS FILE! It is regenerated by the designer. +// All your modifications will be lost! +// http://www.ranorex.com +// +/////////////////////////////////////////////////////////////////////////////// + +using System; +using System.Collections.Generic; +using System.Text; +using System.Text.RegularExpressions; +using System.Drawing; +using System.Threading; +using WinForms = System.Windows.Forms; + +using Ranorex; +using Ranorex.Core; +using Ranorex.Core.Testing; +using Ranorex.Core.Repository; + +namespace AutomatedSystemTests.Modules.ActionsContextMenu +{ +#pragma warning disable 0436 //(CS0436) The type 'type' in 'assembly' conflicts with the imported type 'type2' in 'assembly'. Using the type defined in 'assembly'. + /// + ///The SelectHLCDFile recording. + /// + [TestModule("354b1a8c-c247-4b13-920b-24ee0b2b997d", ModuleType.Recording, 1)] + public partial class SelectHLCDFile : ITestModule + { + /// + /// Holds an instance of the global::AutomatedSystemTests.AutomatedSystemTestsRepository repository. + /// + public static global::AutomatedSystemTests.AutomatedSystemTestsRepository repo = global::AutomatedSystemTests.AutomatedSystemTestsRepository.Instance; + + static SelectHLCDFile instance = new SelectHLCDFile(); + + /// + /// Constructs a new instance. + /// + public SelectHLCDFile() + { + fileNameToOpen = ""; + } + + /// + /// Gets a static instance of this recording. + /// + public static SelectHLCDFile Instance + { + get { return instance; } + } + +#region Variables + + string _fileNameToOpen; + + /// + /// Gets or sets the value of variable fileNameToOpen. + /// + [TestVariable("39671c14-75a2-44bf-95e5-209ad4946b5e")] + public string fileNameToOpen + { + get { return _fileNameToOpen; } + set { _fileNameToOpen = value; } + } + +#endregion + + /// + /// Starts the replay of the static recording . + /// + [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] + public static void Start() + { + TestModuleRunner.Run(Instance); + } + + /// + /// Performs the playback of actions in this recording. + /// + /// You should not call this method directly, instead pass the module + /// instance to the method + /// that will in turn invoke this method. + [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] + void ITestModule.Run() + { + Mouse.DefaultMoveTime = 0; + Keyboard.DefaultKeyPressTime = 20; + Delay.SpeedFactor = 0.00; + + Init(); + + Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Apps}'.", new RecordItemIndex(0)); + Keyboard.Press("{Apps}"); + + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ContextMenu.SelecteerHLCDBestand' at Center.", repo.ContextMenu.SelecteerHLCDBestandInfo, new RecordItemIndex(1)); + repo.ContextMenu.SelecteerHLCDBestand.Click(); + + AddWorkingDirectoryToFileNameIfRelativeFileName(); + + Report.Log(ReportLevel.Info, "User", "Name of file to open:", new RecordItemIndex(3)); + + Report.Log(ReportLevel.Info, "User", fileNameToOpen, new RecordItemIndex(4)); + + // Assign file name to open + Report.Log(ReportLevel.Info, "Set value", "Assign file name to open\r\nSetting attribute Text to '$fileNameToOpen' on item 'OpenDialog.FileNameField'.", repo.OpenDialog.FileNameFieldInfo, new RecordItemIndex(5)); + repo.OpenDialog.FileNameField.Element.SetAttributeValue("Text", fileNameToOpen); + + // Click on open button + Report.Log(ReportLevel.Info, "Mouse", "Click on open button\r\nMouse Left Click item 'OpenDialog.ButtonOpen' at Center.", repo.OpenDialog.ButtonOpenInfo, new RecordItemIndex(6)); + repo.OpenDialog.ButtonOpen.Click(); + + // Wait time (1s) so that dialog is started up + Report.Log(ReportLevel.Info, "Delay", "Wait time (1s) so that dialog is started up\r\nWaiting for 300ms.", new RecordItemIndex(7)); + Delay.Duration(300, false); + + Report.Log(ReportLevel.Info, "Wait", "Waiting 30s to not exist. Associated repository item: 'ActivityProgressDialog.ButtonCancel'", repo.ActivityProgressDialog.ButtonCancelInfo, new ActionTimeout(30000), new RecordItemIndex(8)); + repo.ActivityProgressDialog.ButtonCancelInfo.WaitForNotExists(30000); + + Report.Log(ReportLevel.Info, "Delay", "Waiting for 300ms.", new RecordItemIndex(9)); + Delay.Duration(300, false); + + } + +#region Image Feature Data +#endregion + } +#pragma warning restore 0436 +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/SelectHLCDFile.rxrec =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/SelectHLCDFile.rxrec (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsContextMenu/SelectHLCDFile.rxrec (revision b64b54981a93c7d46159aee6a4cfc596d88ba6ea) @@ -0,0 +1,443 @@ + + + + 1 + + + True + + + True + + + 1 + + + True + + + + + + + + + + + + + + + + + + + + + + /contextmenu[@processname='Riskeer']/menuitem[@accessiblename='Selecteer HLCD bestand...'] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Assign file name to open + + + + + + + + /form[@title='Openen']/?/?/text[@controlid='1148'] + + + + + + D:\testing\Riskeer\automatisering\4.Trajectinformatie_basis\Project_assemblage_A_B_20-1.risk + + + + + Click on open button + + + + + + + False + + + &Open + + + False + + + Button + + + 1 + + + 597534 + + + 0 + + + 26920 + + + Riskeer + + + RightScrollBar, Left, NoParentNotify + + + Tiled, MaximizeBox, Group, Visible, ChildWindow + + + &Open + + + + + + + + + + + + + + + + + + + + + + + + /form[@title='Openen']/button[@text='&Open'] + + + + + + /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABwTFRgVERwYFhgfHRwhKUUtKSYmKVQ8QDJFZFhpZ2JY +YF9ufJ6GbnWWd19giruLlqOpsbOxa4TC0MGszp6usar/2wBDAR0fHykkKVEtLVGqcmByqqqqqqqq +qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/wAARCAEaARoDASIA +AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA +AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3 +ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm +p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA +AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx +BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK +U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3 +uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDpKKKK +ACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA +KKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAo +oooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACii +igAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKK +ACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA +KKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAo +oooAKKKKACiiigAooooAKKZuPrRuPrQA+imbj60bj60APopm4+tG4+tAD6KZuPrRuPrQA+imbj60 +bj60APopm4+tG4+tAD6KZuPrRuPrQA+imbj60bj60APopm4+tG4+tAD6KZuPrRuPrQA+imbj60bj +60APopm4+tG4+tAD6KZuPrRuPrQA+imbj60bj60APopm4+tG4+tAD6KZuPrRuPrQA+imbj60bj60 +APopm4+t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8UYoAZto20/FGKAGbaNtPxRigBm2jbT8UYoAKKKKACiiigAooooA +KKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAo +oooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACii +igAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKK +ACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA +KKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAo +oooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACii +igAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKK +ACiiigAooooAKKKKACiiigAooooA/9k= + + + + + Wait time (1s) so that dialog is started up + + + + + + + + + + + + /form[@controlname='ActivityProgressDialog']/button[@controlname='buttonCancel'] + + + + + + + + + + + + + + + + + + + + SelectHLCDFile.UserCode.cs + + + + Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsRibbon/SelectState.rxrec =================================================================== diff -u -r82902a907f3e77c55c0d03268f47a7a568182d12 -rb64b54981a93c7d46159aee6a4cfc596d88ba6ea --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsRibbon/SelectState.rxrec (.../SelectState.rxrec) (revision 82902a907f3e77c55c0d03268f47a7a568182d12) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsRibbon/SelectState.rxrec (.../SelectState.rxrec) (revision b64b54981a93c7d46159aee6a4cfc596d88ba6ea) @@ -559,6 +559,8 @@ /form[@automationid='RiskeerMainWindow']/?/?/container[@automationid='MainButtonStackPanel']/button[4] + + Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Script09.rxtst =================================================================== diff -u -re08acc449e366d0f81caac9186d558b348c798e8 -rb64b54981a93c7d46159aee6a4cfc596d88ba6ea --- System tests/AutomatedSystemTests/AutomatedSystemTests/Script09.rxtst (.../Script09.rxtst) (revision e08acc449e366d0f81caac9186d558b348c798e8) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Script09.rxtst (.../Script09.rxtst) (revision b64b54981a93c7d46159aee6a4cfc596d88ba6ea) @@ -114,6 +114,10 @@ + + + + + + + + @@ -1417,8 +1435,8 @@ datasource="script09_LoopFMs" errorbehavior="ContinueNextIteration" id="4f65efe8-6ec0-4ee4-b3b7-6f5a4375189d" - maxrange="3" - minrange="3" + maxrange="6" + minrange="1" name="LoopFMs"> @@ -2486,19 +2504,23 @@ + + + + + + + + - - - - + + + + + + + + + + + + - pathHBCInProjectExplorer + pathHLCDNodeInProjectExplorer - pathToFileHBC + pathHRDNodeInProjectExplorer + + pathToHLCDFile + + + pathToHRDFile + @@ -5476,11 +5534,17 @@ pathDisjointedTrajectToSchematizationsFolderItemInProjectExplorer - pathHBCInProjectExplorer + pathHLCDNodeInProjectExplorer - pathToFileHBC + pathHRDNodeInProjectExplorer + + pathToHLCDFile + + + pathToHRDFile + @@ -5537,6 +5601,10 @@ + + + + @@ -5589,9 +5657,15 @@ 8-2>@ZST>Invoer>Voorlandprofielen - 28-1>Hydraulische belastingen + 28-1>Hydraulische databases + 28-1>Hydraulische databases>HRD bestanden + + + X:\commonData\databases\WBI2017_Oosterschelde_28-1_v02\hlcd.sqlite + + X:\commonData\databases\WBI2017_Oosterschelde_28-1_v02\WBI2017_Oosterschelde_28-1_v02.sqlite @@ -5646,9 +5720,15 @@ 6-3>@AGK>Invoer>Voorlandprofielen - 8-3>Hydraulische belastingen + 8-3>Hydraulische databases + 8-3>Hydraulische databases>HRD bestanden + + + X:\commonData\databases\WBI2017_IJsselmeer_8-3a_v02\hlcd.sqlite + + X:\commonData\databases\WBI2017_IJsselmeer_8-3a_v02\WBI2017_IJsselmeer_8-3a_v02.sqlite @@ -5703,9 +5783,15 @@ 8-4>@GEBU>Invoer>Voorlandprofielen - 6-6>Hydraulische belastingen + 6-6>Hydraulische databases + 6-6>Hydraulische databases>HRD bestanden + + + X:\commonData\databases\WBI2017_Waddenzee_Oost_6-6_v03\hlcd.sqlite + + X:\commonData\databases\WBI2017_Waddenzee_Oost_6-6_v03\WBI2017_Waddenzee_Oost_6-6_v03.sqlite @@ -5763,6 +5849,10 @@ + + + + @@ -5818,6 +5908,10 @@ + + + + @@ -5873,6 +5967,10 @@ + + + + @@ -6444,6 +6542,9 @@ id="08ec9f58-a04b-4892-97b1-e97463cbbcf5"> + + + + @@ -5914,7 +5914,7 @@ + name="SelectHLCDFile"> @@ -2664,7 +2664,7 @@ + name="SelectHLCDFile"> +rxversion="10.5"> 10000ms @@ -461,6 +461,9 @@ + + False + True