Q7

try command could cause outofmemory then code block fail too much times.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.12
  • Fix Version/s: 1.2.13
  • Component/s: Runtime
  • Labels:
    None
  • Test Mode:
    Manual

Description

Following code:

try -times 500 -delay 100 -command {
	with [get-view "Execution View"] {
    	get-label -after [get-label "Runs:"] | get-property caption | equals "1/1" | verify-true
    	get-label -after [get-label "Stops:"] | get-property caption | equals 1 | verify-true
    	get-label -after [get-label "Failures:"] | get-property caption | equals 1 | verify-true
    	get-tree | select "CreateJavaProject.*"
    	get-editbox -after [get-label "Message:"] | get-property text | equals "Testcase execution is terminated" 
        	| verify-true
	}
}

Will cause outofmemory issue, and report could not be captured, in case of some script failure.

This is because each failure command try will capture screenshot and append it to report, need to store only last screenshot.

Activity

Hide
Andrey Sobolev added a comment - 17/Dec/12 3:28 PM

Fixed.

Show
Andrey Sobolev added a comment - 17/Dec/12 3:28 PM Fixed.

People

Vote (0)
Watch (0)

Dates

  • Created:
    11/Dec/12 9:19 AM
    Updated:
    21/Oct/13 3:31 PM
    Resolved:
    17/Dec/12 3:28 PM