The eV.Generate

How to use eValid to support regression testing.

The eV.Generate

Postby jl2010 » Mon Dec 27, 2010 1:05 pm

Hi,

I was trying to get the eV.Generate to work but for some reason when I try to run the .evs file, it gets overwritten with a corrupted version of the assigned .evt file. The script does not successfully run and cannot even find the init URL due to the syntax errors that now exist on lines 21 and 24.
Can somebody tell me what I am doing wrong? Here is the text of the appropriate files...


.evs file
Code: Select all
#
# Recording by eValid(tm) V9 Build #303, Build Date: (Jul 16 2010)
# Copyright (c) 2010 by Software Research, Inc.
# Recording made on: Microsoft Windows XP Service Pack 1 (IE 6.0.2800.1106)
, HostName "qa-vm1"
# Recording started at: <2010/12/08 15:10:36>
#

ProjectID "Project"
GroupID "Group"
TestID "TEST_Create_New_Indiv_Acct"
LogID "AUTO"

ScreenSize 1280 1024
FontSize 2
DeleteCache
DeleteCookies

# eVgenSeq "TEST_Create_New_Indiv_Acct.evt" "values.data" 1
# The above "sequential selection" command is replaced with the Random opti=
on...
eVgenRand "TEST_Create_New_Indiv_Acct.evt" "values.data" 1

# End of script.



.evt file

Code: Select all
#
# Recording by eValid(tm) V9 Build #303, Build Date: (Jul 16 2010)
# Copyright (c) 2010 by Software Research, Inc.
# Recording made on: Microsoft Windows XP Service Pack 1 (IE 6.0.2800.1106)
, HostName "qa-vm1"
# Recording started at: <2010/12/08 15:10:36>
#

ProjectID "Project"
GroupID "Group"
TestID "TEST_Create_New_Indiv_Acct.evt"
LogID "AUTO"


ScreenSize 1280 1024
FontSize 2
DeleteCache
DeleteCookies

EnvironmentVariableFile "eVenue_Variables.txt"=20

InitLink "http://qaload.pac.com/cgi-bin/ncommerce3/EVExecMacro?linkID=3DBa"=
 \
   "zookaUT-A693-LFTX&evm=3Dmain"

SyncOnText 0 "Buy Tickets" ""
ValidateSelectedObjProperty 0 183 "innerHTML" "Buy Tickets" "innerText" "" =
\
   "Buy Tickets" ""


FollowLink 0 127 "" "http://qaload.pac.com/cgi-bin/ncommerce3/EVExecMacro?l=
inkID=3DBazookaUT-A6" \
   "93-LFTX&evm=3Dmyac&entry=3Dmain.html&url=3Dhttps%3A//qaload.pac.com/cgi-b=
in/nc" \
   "ommerce3/EVExecMacro%3FlinkID%3DBazookaUT-A693-LFTX%26evm%3Dmain" ""
Wait 1000
FollowLink 0 259 "New Customer" "javascript:goOn('REGISTER');" ""
Wait 1000
InputValue 0 242 "TEXT" "" "email" "{% test1}" "" ""

InputValue 0 246 "TEXT" "" "cemail" "$ConfirmEmail" "" ""

InputValue 0 260 "TEXT" "" "password" "12345" "" ""

InputValue 0 265 "TEXT" "" "passwordver" "12345" "" ""

InputValue 0 274 "TEXT" "" "firstName" "Jason" "" ""

InputValue 0 277 "TEXT" "" "lastName" "Evalid" "" ""
SubmitClick 0 528 "" "submitForm" "Next Step" "" NAV
Wait 1000
ButtonClick 0 364 "" "No" "No" "" NAV
Wait 1000
InputValue 0 260 "TEXT" "" "password" "12345" "" ""

InputValue 0 265 "TEXT" "" "passwordver" "12345" "" ""

SubmitClick 0 528 "" "submitForm" "Next Step" "" NAV
Wait 1000
ButtonClick 0 363 "" "Yes" "Yes" "" NAV
Wait 1000
ValidateSelectedText 0 168 0 "Welcome Jason Evalid!" ""
# Recording stopped at:  <2010/12/08 15:15:20>


.evs file is overwritten with this...

Code: Select all
#
# Recording by eValid(tm) V9 Build #303, Build Date: (Jul 16 2010)
# Copyright (c) 2010 by Software Research, Inc.
# Recording made on: Microsoft Windows XP Service Pack 1 (IE 6.0.2800.1106)=
, HostName "qa-vm1"
# Recording started at: <2010/12/08 15:10:36>
#

ProjectID "Project"
GroupID "Group"
TestID "TEST_Create_New_Indiv_Acct.evt"
LogID "AUTO"


ScreenSize 1280 1024
FontSize 2
DeleteCache
DeleteCookies

EnvironmentVariableFile "eVenue_Variables.txt"=20

InitLink "http://qaload.pac.com/cgi-bin/ncommerce3/EVExecMacro?linkID=3DBa"=
    "zookaUT-A693-LFTX&evm=3Dmain"

SyncOnText 0 "Buy Tickets" ""
ValidateSelectedObjProperty 0 183 "innerHTML" "Buy Tickets" "innerText" "" =
   "Buy Tickets" ""


FollowLink 0 127 "" "http://qaload.pac.com/cgi-bin/ncommerce3/EVExecMacro?l=
inkID=3DBazookaUT-A6"    "93-LFTX&evm=3Dmyac&entry=3Dmain.html&url=3Dhttps%3A=
//qaload.pac.com/cgi-bin/nc"    "ommerce3/EVExecMacro%3FlinkID%3DBazookaUT-A6=
93-LFTX%26evm%3Dmain" ""
Wait 1000
FollowLink 0 259 "New Customer" "javascript:goOn('REGISTER');" ""
Wait 1000
InputValue 0 242 "TEXT" "" "email" "Random1@qa.com" "" ""

InputValue 0 246 "TEXT" "" "cemail" "$ConfirmEmail" "" ""

InputValue 0 260 "TEXT" "" "password" "12345" "" ""

InputValue 0 265 "TEXT" "" "passwordver" "12345" "" ""

InputValue 0 274 "TEXT" "" "firstName" "Jason" "" ""

InputValue 0 277 "TEXT" "" "lastName" "Evalid" "" ""
SubmitClick 0 528 "" "submitForm" "Next Step" "" NAV
Wait 1000
ButtonClick 0 364 "" "No" "No" "" NAV
Wait 1000
InputValue 0 260 "TEXT" "" "password" "12345" "" ""

InputValue 0 265 "TEXT" "" "passwordver" "12345" "" ""

SubmitClick 0 528 "" "submitForm" "Next Step" "" NAV
Wait 1000
ButtonClick 0 363 "" "Yes" "Yes" "" NAV
Wait 1000
ValidateSelectedText 0 168 0 "Welcome Jason Evalid!" ""
# Recording stopped at:  <2010/12/08 15:15:20>

Values.data

#  Parameterized values


test1 Random1@qa.com
test2 Random2@qa.com
test3 Random3@qa.com
test4 Random4@qa.com

eVenue_Variables.txt

  # Environment Variables for eVenue eValid scripts
$Email=3DAutoTest1@qa.com
$ConfirmEmail=3DAutoTest1@qa.com
jl2010
 
Posts: 2
Joined: Mon Dec 27, 2010 12:36 pm

Re: The eV.Generate

Postby eValid » Mon Dec 27, 2010 1:21 pm

Thank you for all your file details.

After reviewing all your data and without the ability, to access your website/replicate your exact errors, the following concerns were noted. Please try the following:

1. Unless, I've misread your filenames and contents, your invoking *.evt, template file's name CANNOT be the same as your initiating VgenRand/eVgenSeq scripted *.evs' filename. i.e. the above 2 commands will generate a new .evs based on the "assigned_name.evt" input parameter...

2. eVgenRand/eVgenSeq template files MUST NOT contain the originally recorded "new line/continuation" - "/" markers. You must unfold/reconnect the continuation parts so that each script command appears as a complete 1 liner in the .evt template file(s).

I hope this helps you to overcome your reported corruption issues and syntax errors.

_________________
The Support Team
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Regression Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons