Validation before running test script?

Hello Gurus,
I am getting started to learn eCATT and with different posts availabe I was sucessfully able to create and execute simple scripts. Thanks for posting all this and I am now able to create all four objects in eCATT. A special thanks to Sapna Modi for her step wise information.
However, I have certain conditions to check before running test script. Like I want to check a table entry and if the entry exists then the test script should be executed. I tried with ABAP  ...ENDABAP and TCD recording.  I wasnt able to do it.
Could anyone of you please let me know how we can accomplish this? Also when the entry isnt there in the table the test script should fail and appropriate message should be displayed in the log.
Also, please let me know if we can use TCD and SAPGUI commands within ABAP ENDABAP commands.
Your help is highly appreciated...
Regards,
GS...

Hi,
For your negative testing,if your entry is not listed in the table.Eventually CHETAB command wil fail and you see a Red log.
For not executing the script,if your check fails.Please add some condition..
In CHETAB/GETTAB table commands,Say you passed a value and it is found in the table.Then the return value for the CHETAB/GETTAB would be zero.If it is failed it return Non-zero values.This values can be captured by using the command &SUBRC.
So please apply a condition for your next script to execute..
If &SUBRC = 0
give the script name
else
log(condition failed)
endif.
just add this code in between your code..and place the script you wanna execute after your check is successful.
Hope it answers your doubts.
Regards,
Venky

Similar Messages

  • Error while running test configuration

    Hi,
    I created a test script using SAPGUI and test configuration.In test configuration,i created 2 variants other than default one.Downloaded the variants and executed it. It was giving error "Error inn ecatt command SAPGUI","Cannot Find Screen Element  in Replay Mode". When i run test script alone,its working fine.
    Please tell me how to correct the problem.
    Thanks,
    Aparna.

    Hello Aparna,
    As per the error description give by you , it means that when you execute the script recorded the eCATT control is unable to find the screen element in the screen recorded , possible reasons may be that the control may be in some other screen and trying to find the screen element of the other screen in the present screen.
    Solution to this may be check the connection id and the session id of the SAPGUI where the script is failing.
    Ideally all the connection id and session id of all the SAPGUI's recorded has to be same so that execution takes place in a single session.
    Hope it answers your question.
    Thanks and Best regards,
    Ajay

  • How do I validate a regex before running it?

    I wish to make sure that my regex is valid before running it. Is there boolean method to validate it?

    How aboutboolean valid = true;
    try {
      Pattern p = Pattern.compile(theRegexYouWantToValidate);
    } catch(PatternSyntaxException pse) {
      valid = false;
    }?

  • Set JAVA_HOME before running cloudscape -start

    Hi
    after i installed J2EE , i have made the following steps through DOS :
    1- set J2EE_HOME=C:\j2sdkee1.2.1
    2- set PATH=%PATH%;C:\j2sdkee1.2.1\bin
    3- cloudscape -start ---- in this step i have got an error saying "set JAVA_HOME before running this script" how can i solve this error
    with best regards

    Hi
    after i installed J2EE , i have made the following
    steps through DOS :
    1- set J2EE_HOME=C:\j2sdkee1.2.1
    2- set PATH=%PATH%;C:\j2sdkee1.2.1\bin
    3- cloudscape -start ---- in this step i have got an
    error saying "set JAVA_HOME before running this
    script" how can i solve this error
    with best regardshello,
    You did not set the variable JAVA_HOME. Set it to the home directory where the jdk is installed. For that give the command like set JAVA_HOME=C:\jdk1.3.1 in the DOS Prompt along with setting the J2EE_HOME and PATH variables...
    you may also make a new system environment variable JAVA_HOME and assign the jdk home path to it so that u need not set it everytime for a new DOS Window..
    hope that helps..
    -Jer

  • OpenScript compatibility & unable to open instance after running test scrip

    I have an open SR with Oracle (sr#3-6909979251).
    We purchased OATS (Test Manager and Open Script) and we also pay for oracle support. After I run test scripts, I have issues opening the instance that test scripts run against. For example, I run them in our PreProduction environment, after I run all 100+ test scripts, I try to log into PreProduction as usual (without using open script or even having it open), and at the point where the form would typically open - I get an error message instead (which I have attached to the SR). This happens after I run scripts. Noone else has the problem, and I am the only one that has OpenScript loaded on my machine, and it always happens after running test scripts, so it must be related to OpenScript some how.
    In the SR, they are implying that its because OpenScript is not compatible with EBS 11i. That can't be the issue...can it? And if it is, if I install the new OpenScript R12 to run against EBS 11.5.10.2?
    I can't seem to find what versions OpenScript is compatible with on MOS>Compatibility.
    Any thoughts on this or has anyone else had issues opening their EBS instance after running test scripts?

    I was playing around with my profile settings and comparing them to other users. I had a value in ICS: Forms Launcher, but the other admin person did not. I removed that link, now the instance FINALLY (after over a month of issues) opens without a problem.

  • Running validation before the 'save as' script

    Hi
    I'm looking for a steer on how to run form validation before implementing the 'Save as' script - is this even possible??
    Basically I want the save as script to run in the click event of my newly formed save button only if the validation script returns a positive value i.e. all mandatory fields are completed, I've used the script below:
    if 
    (form1.execValidate()== "false"){
    app.execMenuItem("SaveAs");
    Any chance someone could point me in the right direction or am I barking up the wrong tree?
    Thanks

    got it to work: my script was wrong, it now looks like this:
    if 
    (form1.execValidate()== true){
    app.execMenuItem("SaveAs");

  • Issue running Load Test Scripts in an SSO environment

    Hello,
    I am performance testing some of our web applications that use SSO. Any script I record will play back fine but upon running them in the Navgation Editor I am getting HTTP/1.1 401 Unauthorized error messages. To combat this I configured Internet Explorer securuty settings to always prompt me for a username and password to access this site. I then used the dialog and authentication managers to have e-Tester automatically enter login information.
    However even with all of that configured I still get the error message when playing back in the navigation editor or Load Teser. How can i get around this issue short of having a login page as oppossed to the dialog message i use to login now?

    Yes I understand your SSO authentication scheme as well as the 401 error you receive. What type of authentication is your SSO using? Is it NTLM or something different?
    When you run in the navigation editor, which Options->Playback Agent have you chosen? The best agent to use is "Java Agent", though to debug authentication problems you should test the other 2 options, which is Thin Client with and without Wininet.
    I did not mention it before, but if you are only interested in creating performance testing scripts you may consider the new OpenScript tool. In the near future you will also be able to use this tool for Functional UI scripting. See my comments in [this thread|http://forums.oracle.com/forums/message.jspa?messageID=3356340#3356340]

  • Why MicroSoft 2000 SR needed while running the script using test manager???

    hi all,
    whenever I trying to run a script using test manager,one POP-UP comes which starts installing MICROSOFT 2000 SR.
    and in few seconds it complaining for some missing component,
    can any body tell me why it is happening.
    what is the need of Microsoft 2000 SR while running the script in test manager.
    tnx
    USOni

    USoni
    I have seen that problem happening before, even that i was never able to figure out why, something that you can try is changing the service log in credentials for both:
    Oracle Application Testing Suite Agent Service
    Oracle Application Testing Suite Application Service
    and use a proper user with admin rights.
    let me know if that helped
    Regards
    Alex

  • Errors while running load test scripts in Oracle Load Test

    I am a QA Analyst and this is my first time using the Oracle Load Test application. Acutally this is the first time I have done anything related to load test scripts. The Oracle Load Test version I am using is 9.10.0219. When I run some of the scripts with a user ramp up of 1 user per step, the load tests complete successfully. When I begin to adjust the number of VUs per step to 2 or more, I begin to get some of the following errors. By the looks of these errors can you provide any feedback as to whether these are issues with OLT or with the application I am running the load test against? Any help would be greatly appreciated.
    Thanks
    John
    - ThinBrowserException occurred. HTTP response code: 500 Internal Server Error
    - VariableNotFoundException occurred. Variable "web.jscript.httplbosinl1cccsmo_2468" not found for string: http://lbosinl1.ccc.smo.com:9595/Tmo/H5/portal/lipo_portal/{{web.jscript.httplbosinl1cccsmo_2468,Scenario}}
    - VariableNotFoundException occurred. Variable "web.jscript.httplbosinl1cccsmo_5617" not found for string:
    {{web.jscript.httplbosinl1cccsmo_1984,Suif_Context_Period_Date}}=
    {{web.jscript.httplbosinl1cccsmo_5617,12/05/2010}}

    Hi,
    It looks like an application issue since you are getting a HTTP 500. The other errors relate to the fact that ti can't resolve some dynamic values in needs to extract from the resonse content since the pages are different (probably due the 500 error).
    Regards,
    Jamie

  • How to run tests in Firefox when running script using runScript.bat

    I am trying to run OATS script from commandline without opening Openscript IDE(eclipse). I use the following command to execute my script:
    runScript "<scriptpath>/<scriptName>.jwg"The script starts to execute and launches IE. I wanted to run my test on Firefox but it always launches IE even if Firefox is my default browser.
    If I run my script from Openscript IDE it honours the Browser settings in View > OpenScript preferences... OpenScript > General > Browsers. When running thorugh cmd line, these settings are not taken into account as Eclipse preferences settings are applicable only for the workspace selected for the IDE.
    Any thought on how to set these preferences when running scripts using runScript.bat file?
    Thanks,
    Manish Khatre

    Hello
    You need to pass the value/parameters (preferences) to the command line as documented in the OpenScriptUserGuide.pdf.
    Something like
    -browser.type type
    Specify the browser type to use for script playback
    where type is one of the following (use exact case
    and no spaces):
    ■ InternetExplorer
    ■ Firefox
    The default is InternetExplorer
    JB

  • "Stop running the script?" error after power-up and before starting Firefox

    I have a Windows 7 x64 Enterprise system with Firefox 10.0.02. I'm getting the error
    ''''''Stop running this script?'''
    '''A script on this page is causing your web browser to run slowly. If it continues to run, your computer may become unresponsive''''''
    after I power up my PC, but before I open Firefox.
    The error message, of course, does not identify what "this page" is, or tell anything about the script. The error message doesn't even say it's from Firefox (or Internet Explorer, for that matter).
    I've done a virus scan, a spyware scan, and an adware scan, but the error keeps popping up.
    Everything I've found on the web about this error assumes the problem is with Internet Explorer, but I don't use IE.
    Suggestions?
    Thanks.

    Start/All programs/Startup has only McAfee Security Scan Plus. After power-up, clicking on Show Hidden Icons lists Sound Effect, McAfee Total Protection, Spybot-SD Resident, Ad-Aware, and a flag labeled "Solve PC issues: 1 message".
    If I click the flag, it opens Windows Backup Troubleshooting Options. The message is "Check your backup settings. Windows cannot find the disk or network location where your backups are being saved". There are two options -- Change backup settings and Try to run backup again.
    This is because I do not usually have the external herd drive I use for backup attached. I ignore this message.
    Also, Sql Server 2008 R2 and Oracle 11gR2 start up, along with IIS. I use this PC for various courses.
    FWIW, I've attached screen grabs of the Services and Processes from Windows Task Manager.
    Thanks.

  • A way to run bundle tests scripts with EBS 11.5.10.2

    Hi,
    looking for a way to run bundle tests scripts with EBS 11.5.10.2. We prepare our tests scenarios and run them manually now but would rather job them and verify results of testing on logs created by the automatic execution of these scripts.
    We use UPK for preparing and supporting our training activities and I read that UPK features a way to prepare and run bundle tests scipts. Does anybody from the community knows something about that? I haven't found a guide to explain how to do it.
    Hoping someone to lead me to the topic I'm looking for. Does any release of UPK can do this and how or the community uses another tool to do so
    Alain

    UPK allows you to create manual test scripts which can be imported into a variety of testing suites. UPK does not provide automated test scripts. In the current release, the name of the publishing style is "HP Quality Center". This will create a spreadsheet document that can then be imported into a variety of testing suites as a test script. The product documentation should give you all the information you need to start using the HP Quality Center output. If not, here is a blog post describing how to use UPK to create an output for IBM Rational Quality Manager, which may help describe how this process works:
    http://blogs.oracle.com/UPK/2010/05/upk_and_rqm.html
    I hope this helps.
    Best regards,
    Marc

  • [svn:bz-4.0.0_fixes] 16148: Update config testsuite on 4.0. 0_fixes branch to force kill the app server before running any tests when the app server is Tomcat .

    Revision: 16148
    Revision: 16148
    Author:   [email protected]
    Date:     2010-05-17 06:40:40 -0700 (Mon, 17 May 2010)
    Log Message:
    Update config testsuite on 4.0.0_fixes branch to force kill the app server before running any tests when the app server is Tomcat. The regression runs were hanging on this branch when going to run the config suite because the Tomcat server isn't shutting down cleanly at the end of the MXUnit run. I believe this is an issue with the version of ActiveMQ we are using. Since I don't think we want to update ActiveMQ on this branch force killing the Tomcat server will workaround the problem.
    Modified Paths:
        blazeds/branches/4.0.0_fixes/qa/apps/qa-regress/testsuites/config/build.xml

    Hi,
    Thanks for the reply. I have tried this on another machine running the same version of Blackboard. It works fine.
    Only difference is that the machine that has the JVM crash is running on Fujitsu PrimePower and the OS is Solaris 9 (but twigged for PrimePower).
    The one where it runs and starts up successfully is running on SunFire (OS is Solaris 10).
    I am wondering if there is a problem with the JVM loading required libraries because of the OS being different versions.
    Any leads on this is welcomed. Thank you.
    Regards,
    Hon Peng
    ===================
    On Fujitsu Primepower
    SunOS 5.9 Generic_118558-33 sun4us sparc FJSV,GPUS
    the Dependencies for libjvm.so are as follows:
    ===================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /usr/lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /usr/lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /usr/lib/libm.so.1
    libthread.so.1 => /usr/lib/libthread.so.1
    libc.so.1 => /usr/lib/libc.so.1
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libmp.so.2 => /usr/lib/libmp.so.2
    /usr/platform/FJSV,GPUS/lib/libc_psr.so.1
    =====================================
    On SunFire, Sun machine
    SunOS 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-280R
    the dependencies are different for the libjvm.so:
    =====================================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /lib/libm.so.1
    libthread.so.1 => /lib/libthread.so.1
    libc.so.1 => /lib/libc.so.1
    libnsl.so.1 => /lib/libnsl.so.1
    libmp.so.2 => /lib/libmp.so.2
    libmd5.so.1 => /lib/libmd5.so.1
    libscf.so.1 => /lib/libscf.so.1
    libdoor.so.1 => /lib/libdoor.so.1
    libuutil.so.1 => /lib/libuutil.so.1
    /platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
    libm.so.2 => /lib/libm.so.2
    /platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1

  • Error while running ebs/forms load test scripts

    Hi, I´m new using the oracle application testing suite tools, i need to know the reasons of the following errors generated when running load test scripts in some of the virtual users:
    "ThinBrowserException", "VariableNotFoundException".
    how can i solved that?

    Tell me How many VUsers are given?

  • Running a pre-test script to setup my test data

    I am trying to run a script from e-Manager Enterprise to setup or stage my data prior to the playback of my test branch. I think i could do it with vba in a dummy e-Tester script or via a third party test. Has anyone ever done this and what is the best method for this type of activity?

    The 3rd Party test case type in e-ME is well suited for this purpose. You can specify any .bat file executable to run with your 3rd Party test case. Although one usage for this is to launch automated scripts in external or homegrown test tools - another usage is to launch a pre-test or other executable to setup your test environment. You can then either launch this manually in the e-ME test tree or schedule it to run ahead of your other automated scripts in the e-ME Web scheduler.

Maybe you are looking for

  • Firefox update downloads for setup but then disappears; not in download box or on screen.

    Firefox tells us when we connect to the internet that it needs to update to a new version 5.0.1 When we hit the download button, the download screen pops up and says the setup is downloading. Once done, nothing shows in the box or on the desktop, so

  • How do i get a tracking number for my shipment

    i sent my phone in a week ago to get a new one or they were going to repair it but i dont have a tracking number to shipment and my account is saying i dont have a shipment out how do i fix this problem

  • Changing color of report result in column

    I've seen a number of examples in these forums to use a CASE statement to return the result from a select into a CSS mark up structure to change the display attributes of the result depending on a particular condition. I've not seen a way to make it

  • Media Manager not collecting all files to new destination - Why?

    Specs: 10.5.8 / Final Cut Pro 6.06 / Dual Quad Tower - So here's the conundrum. We've got a lot of video projects to backup (about 80) and move to another drive. When we go to media manager and ask it to copy files over to a new destination, it grabs

  • Captivate 4 - changing playbar button order?

    I would like to change the order and size of the playbar buttons in Captivate 4 - Is this possible? A search reveals it was possible in Captivate 3 but it doesn't appear to apply to Captivate 4.