puts "================"
puts "OCC25424"
puts "================"
puts ""
#######################################################################################
# Performance regression on step import
######################################################################################

pload XDE
pload QAcommands

if { [regexp {Debug mode} [dversion]] } {
  set max_time 200
} else {
  if { [regexp {Windows} [dversion]] } {
    set max_time 15
  } else {
    set max_time 20
  }
}

dchrono h reset
dchrono h start

testreadstep [locate_data_file bug25424_Secure.stp] result

dchrono h stop
set q [dchrono h show]

regexp {CPU user time: ([-0-9.+eE]+) seconds} $q full z
puts "$z"

if { $z > ${max_time} } {                                         
    puts "Elapsed time of testreadstep is more than ${max_time} seconds - Faulty"
} else {
    puts "Elapsed time of testreadstep is less than ${max_time} seconds - OK"
}

checkprops result -s 6998.53
checkshape result

checknbshapes result -vertex 4482 -edge 6781 -wire 2309 -face 2305 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 15879
checkview -display result -3d -path ${imagedir}/${test_image}.png
