| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA |
| Element-Name: AssertionOfWholeTableWithColumnsCase2 |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _aHulwKAFEeGPxNIj9yQ-YQ |
| Runtime-Version: 2.2.0.qualifier |
| Save-Time: 5/21/17 12:13 PM |
| Tags: ControlPanel, AssertionMode |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| Copyright (c) 2009, 2014 Xored Software Inc and others. |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| |
| Contributors: |
| Xored Software Inc - initial creation and/or initial documentation |
| -------------------------------------------------------------------------------- |
| |
| TEST STEPS |
| |
| 1. Using "write-csv-file" command create a CSV file |
| 2. Change source |
| 2. Using "read-csv-file" command compare the table with CSV file |
| |
| TEST RESULT |
| |
| Assertion is false |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| get-view "Test Explorer" | get-tree | get-menu "New/Project..." | click |
| with [get-window "New Project"] { |
| get-tree | select "General/Project" |
| get-button "Next >" | click |
| get-editbox -after [get-label "Project name:"] | set-text assertData |
| get-button Finish | click |
| } |
| get-preferences-menu | click |
| with [get-window Preferences] { |
| get-tree | select "Team/File Content" |
| get-table | get-table-data | write-csv-file "workspace:/assertData/table.csv" |
| get-button "Add Extension..." | click |
| with [get-window "Enter File Extension"] { |
| get-editbox -after [get-label "Please enter a file extension:"] | set-text "*.test" |
| get-button OK | click |
| } |
| get-button "Apply and Close" | click |
| } |
| get-preferences-menu | click |
| with [get-window Preferences] { |
| get-tree | select "Team/File Content" |
| get-table | get-table-data | eq [read-csv-file "workspace:/assertData/table.csv"] | not | assert-true |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |