mssl wrote:Hi All,
I am new eValid user. Basically i tried some testing using evalid tool. I have a problem in validating a text field entry.
Scenario
1. Logging into a webpage.
2. Clicking a link in sidepane.
3. Now in the right side, i selected a particular tab.
4. In the selected tab, there is a text field where I can give only numbers less than 32.
5. I tried 33, there was pop-up saying me your input should be less than 32.
6. I clicked Ok in the pop-up box.
Here I stopped the recording. But when I played back, only till step 3 execution was happening. But the status colours green which meant success.
Can someone help plz.
PS: I tried application mode.
Code as below
ProjectID "Project"
GroupID "test3"
TestID "L3_new.evs"
LogID "AUTO"
ScreenSize 1024 768
FontSize 1
DeleteCache
DeleteCookies
GotoLink 0 "http://10.10.0.1/" ""
Wait 1000
InputValue 0 29 "TEXT" "" "Login" "test" "" ""
Wait 1391
InputValue 0 32 "TEXT" "" "Password" "test123" "" ""
SubmitClick 0 34 "" "submit" "Login" "" NAV
# Application Mode ON
Wait 1000
ElementMouseUp 0 192 "img_TreeId6" "" "number:6"
ElementClick 0 192 18 231 "img_TreeId6" "" "number:6" NAV
Wait 2984
ElementMouseUp 0 250 "" "BGP" "number:6"
FollowLink 0 250 "BGP" "http://202.144.0.1/iss/bgp_globalconf.html?Gambit=edadkdgdhdddjdhdkdchpg" \
"pgehkdbgegngjgogbdcddd" "number:6"
Wait 1000
FollowLink 0 27 "Filters" "javascript:void(0)" "number:4"
Wait 1000
ElementBlur 0 20 "" "" "number:7"
Wait 1000
ElementBlur 0 48 "" "" "number:7"
Wait 718
ElementBlur 0 52 "" "" "number:7"
Wait 1782
ElementBlur 0 48 "" "" "number:7"
# Recording stopped at: <2010/09/08 10:03:43>
eValid has numerous approaches for the handling of "validating a text field entry" and they will vary depending on the webpage's context/types, events, and corresponding actions. i.e. HTML, AJAX, Windows Applications, type of pop-ups, etc.
Based just on your provided "L3_new.evs" scenario, I hope that it is safe to assume that your step 4 and step 5 actions trigger some sort of MODAL dialog POP-UP or ?
If input into a text field generates a MODAL type box, then eValid needs to have added "ModalDialog..." type script commands added.
Please see the following user manual pages, so that you can become familiar with how eValid needs to be scripted to handle such events/actions:
http://www.e-valid.com/Products/Documentation.9/Technical/script.html#ModalDialogEnterand
http://www.e-valid.com/Products/Documentation.9/Testing/modal.hints.htmlWithout the above scripted "ModalDialog..." instances and depending on the behaviors, eValid's default enabled "Suppress modal pop-ups" settings will probably automatically dismiss the pop-up and verification of such is logged into the playback events, L3_new-E.log file.
If you choose to record a script which interacts with the MODAL pop-ups, then please add the necessary eValid action script commands and remember to DISABLE your "Suppress..." settings and/or apply eValid's "PlayValue _PS 0" to override your GUI registry for the particular playback instance only.
I hope this helps you to better understand eValid's results within your posed scenario. Also, "the status colours green which meant success" just confirms that eValid played back exactly every scripted command correctly. i.e. what was recorded was played back...
Here's some more immediate thoughts and suggestions:
Now, if you visually do NOT get the desired outcomes, then we must start with the following, especially, if you do not atleast see eValid triggering the MODAL...
-What type of "selected tab" element are we dealing with?
-Are the scripted commands complete or ? i.e. for every action taken during recording, an equivalent script command needs to be inserted into the .evs file...
-Perhaps alternative "Advanced Record Modes" are necessary?
-Perhaps alternative "Index Motion" equivalent sequences need to be manually scripted in?
Is there anyway for you to provide us with access to this website from our end?
eValid Support