How to test for existence of AcroXFA test objects?

Hi -
I'm writing scripts to test an XFA form with dynamic subforms.  For example, at the end of Part 4, the user hits a Validate button, and if their data is correct, then the Validate button disappears and a Part 5 subform appears.
So my script looks something like this:
Function GetButtonPart4Validate()
   Set GetButtonPart4Validate = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1")
.AcroXFAForm("sfPart4").AcroXFAButton("sfValidate")
End Function
Function GetPart5()
   Set GetPart5 = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5")
End Function
GetButtonPart4Validate().Click
PDFDoc( "TestForm" ).WaitProperty "ready", true, 60000  ' Wait for event processing complete
If DataTable("boolValidates", dtLocalSheet) = "TRUE"  Then
     If( GetPart5().Exist ) Then
          ' A: Checkpoint Succeeds: Validation was successful
     Else
          ' B: Checkpoint fails: Validation failed
     Endif
Else
     If(  GetPart5().Exist ) Then
          ' C: Checkpoint Fails:  Validation was unexpected
     Else
           ' D: Checkpoint Succeeds:  Validation failed as expected
     Endif
Endif
Unfortunately it appears that XfaSubForm.Exist always returns TRUE.  In other QTP testing domains (eg "Exist Property (WinObject)" in QTP Help), the documented behaviour of the Exist property is to be true if the desired test object can be found in the application-under-test. Typically this means that when the script tries to access an XFA widget which doesn't exist (even something like GetPart5().getROProperty("visible") ), the script stops and thinks for a minute or so, and eventually produces a test error that the object doesn't exist then muddles onward. It is the "stops and thinks for a minute or so" which frustrates me, since these are delays which I am trying to avoid.
Another possible angle I looked into was counting the subforms under Part 5's parent.
PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").RefreshObject
PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5").Refresh Object
' check to see if there is a 'sfPart5'
Dim MyChildren, i
Set MyChildren = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").ChildObjects
For i=0 to MyChildren.Count - 1
    print i & " name=" & MyChildren(i).GetROProperty("name")
Next
This also seems to fail:  Part5 doesn't appear among its parent's children (at least before QTP actually tries to use it).
The PDF Test Toolkit User Guide doesn't specifically mention that Exist or RefreshObject or ChildObjects are implemented, so I can't say AcroQTP isn't working as designed, but if you're looking for suggestions for improvement, I'll vote for fulfilling these parts to the QTP.  Please confirm my conclusions that these are not properly implemented, or whether I'm missing something.
In the meantime, do you have any recommendation on how to proceed?  My present workaround is to look for a "validation error" windows dialog that indicates Part 5 won't exist, but this won't work in future test scripts.
Cheers,
Brent

Hi,
816387 wrote:
... QUERY:-  Find all customers who have at most one account at the Perryridge branch.
SOLUTION *1* :-
select customer_name
from depositor,account
where account.account_number=depositor.account_number and
branch_name='Perryridge'
group by customer_name
having count(account.account_number) <=1
ok running correctly
That finds customers who have exactly one account at Perryridge.
The assignment is to find customers who have at most one account at Perryridge. You need to include customers with 0 accounts at Perryridge, as well. You could use an outer join, or MINUS, or a NOT IN subquery, or a NOT EXISTS sub-query (as mentioned above) to do that.
Can there be customers who have no accounts at all, at any branch? If so, you'll need to use the customer table in this problem, as well as depositor and account.
>
SOLUTION *2* :-
select D1.customer_name
from depositor D1
where unique
(select customer_name
     from depositor D2,account A1
     where D1.customer_name=D2.customer_name
          D2.account_number=A1.account_number and
          branch_name='Perryridge'
gives error:-
where unique
..........*^*
ERROR at line 3:
ORA-00936: missing expression
Logic of both solution are correct . But Solution 2 gives error in oracle. I want unique construct to work.Sorry, it doesn't in Oracle. I don't know of anything like that in Oracle.
Does "WHERE UNIQUE (SELECT ...)" work in some other database system? Which?
How to do it. Or How can i test for the absence of duplicate tuples ??????
Your Solution 1 is the best way to find customers with exatly 1 account (rather than 0 or 1 accounts) at Perryridge. Is there any reason why you wouldn't want to use it, if you ever needed to find customers with exactly one account there?

Similar Messages

  • How to look for kMAT material in Testing client?

    Hi PP members:
    How to look for KMAT material in Test client,
    Note: I went to mm60 and entered material type: KMAT it did not populate any
    materials
    Is there any way where I can find the materials, If yes please let me know
    thanks
    Suren

    Hi Saritha:
    When I went to SE16, and entered MTART as KMAT it giving the following
    It is replying me back "No table entries found for specified key"
    Also want to bring to your kind attention I left MATNR field blank as I donot know
    the VC materials
    thanks

  • How to prepare for Orcl 11g database tests

    Hello,
    I am getting trained for the Oracle 11g Database Administrator Professional exams/test.
    I candidly would want to know how many test would be written for the OCP 11g certification.
    And what other resources apart from books like Intro to SQL, and Administration Workshop would I need to excel in the tests?
    *What driver on a windows 7 OS is compatible for installing Oracle 11g Database Software?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    tedjustice wrote:
    Hello,
    I am getting trained for the Oracle 11g Database Administrator Professional exams/test.....A better focus would be to train to be capable as an Oracle DBA; then to do the exam as a verification of your capability.
    I candidly would want to know how many test would be written for the OCP 11g certification..... See http://certiifcation.oracle.com
    And what other resources apart from books like Intro to SQL, and Administration Workshop would I need to excel in the tests?
    http://docs.oracle.com
    practice.
    experience.
    knowledge.
    Better training than you are currently getting ... perhaps?
    Please also be aware you will need an accredited course from an accedited provider as part of the requirements to get an Oracle DBA OCP, see http://certiificaiton.oracle.com
    >
    *What driver on a windows 7 OS is compatible for installing Oracle 11g Database Software?Search http:// docs.oracle.com for the relevant installation guide.

  • Testing for existence of a table - MySQL

    I'm using MySQL and I just want to see if a table exists so
    that I can either select data from it or if it does not exists, I
    want to pull the same fields from a table that I already know
    exists.
    Any help would be greatly appreciated.
    Thanks

    quote:
    Originally posted by:
    BKBK
    using MySQL
    <cfquery name="tableExists" datasource="DSN">
    SELECT count(*) as testValue
    FROM information_schema.tables
    WHERE table_schema = 'the_database_name'
    AND table_name = 'your_table_name'
    </cfquery>
    <cfif tableExists.testValue[1] GT 0><!--- your table
    exists --->
    <cfquery name="q" datasource="DSN">
    SELECT *
    FROM your_table_name
    </cfquery>
    <cfelse><!--- your table doesn't exist --->
    <cfquery name="q" datasource="DSN">
    SELECT *
    FROM other_table_name
    </cfquery>
    </cfif>
    <cfdump var="#q#">
    Thanks BKBK!. That works perfectly. I don't administer the
    ColdFusion Server, so I'm hoping the administrators are handling
    any security issues.

  • [solved] Best way to test for record in sqlite3 db?

    In a bash script, I need to know if a sqlite3 'SELECT ... WHERE' operation finds any matches.  I don't need the output; I just need to know if a match is found.  My thought was to do
    if [[ "$(sqlite3 ... "SELECT ..." )" ]];then ...
    Is there a better way to do it?
    Bonus question: if searching a primary key or unique column, is a ' SELECT ... WHERE foo="bar" ' operation smart enough to stop when it finds a match, or will it continue through the rest of the table?
    Thanks.
    Last edited by alphaniner (2012-04-26 14:51:36)

    @alphaniner: Primary key columns are usually indexed, hence a query for a primary key column will not traverse the table, but perform an index lookup. Since primary keys are unique this will end up at a single row.
    To test for existence of a row, you'd usually use "select exists(select 1 from <table> where <condition>)".  This will output 1, if the row exists, and 0 otherwise. I don't know whether the exit state of the "sqlite" tool is reliable, but testing the output will be with this query.
    And again: If you're doing this kind of stuff, you're better off with a real languages with data types and the like. Python provides SQLite support in the standard library.

  • [svn:bz-trunk] 9663: Add test for BLZ-415.

    Revision: 9663
    Author:   [email protected]
    Date:     2009-08-26 13:59:10 -0700 (Wed, 26 Aug 2009)
    Log Message:
    Add test for BLZ-415. Test that when disallow-wildcard-subtopics is set to true and a Consumer tries to subscribe to a destination and has a subtopic that contains a wildcard that they get an error. Also test that when disallow-wildcard-subtopics is set to true and a Consumer tries to subscribe to a destination and has a subtopic that does not contain a wildcard that they are able to subscribe and that they can receive a message from a Producer that has a matching subtopic header.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-415
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/messaging-config.mods.xml
    Added Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/dynamicDestinat ions/subtopicsEnabledWildcardsNotAllowed.mxml

  • OpenScript: How do you test for object/text existance programmatically?

    Hi, All;
    I hope someone can help me; kind of new to OATS. I can’t figure out how to test for object/text existence and return results back to the script. There are methods for verifying text and objects; i.e.
    Web.verifyText
    Web.assertText
    These methods just report pass or fail to the test. I need to get the data back programmatically so I can use it logically. I know you can do this pretty easily in Selenium and QTP so there must be a way in OATS.
    Thanks,
    Eric

    Hi Eric,
    You can use the Object Explorer to find the xpath of the object you are interested and check for its existence, and then grab some attribute of that object for use elsewhere.
    if (web.element(6,"/web:window[@index='0' or @title='Software and Services - SCL']/web:document[@index='0']/web:span[@text='Services' or @index='14']")
                             .exists()){
              System.out.println("OBJECT EXISTS");
    // get an attribute of object here ,e.g
    String myval = web.element(41,"/web:window[@index='0' or @title='Software and Services - SCL']/web:document[@index='0']/web::span[@text='Services' or @index='14'].getAttribute("innerText");
    // use myval elsewhere
    Hope it helps.
    Jamie

  • How do I test for the presence of an active open document in Photoshop?

    I’m new to Adobe scripting, and one of my first scripts deals with the activeDocument in Photoshop.
    If there is no activeDocument, I want to display a message and terminate the script.  My efforts
    so far have been met with frustration.  While developing the script in ExtendScript Toolkit,
    I used the  test expression "activeDocument in app", and everything worked as expected. And when I installed the script
    in the Photoshop scripts folder and ran it from Photoshop with a document open, it also worked.
    But when I ran the script from Photoshop with no document open, it failed.
    Moreover, after that,the script failed when I tried to run it in ESTK.
    I did some testing and found that my test expression, "activeDocument in app"
    was returning true, even though no document was open.
    Still in ESTK, I replaced the “app” with ”Application” in the test expression.  That worked when
    I stepped through the script.  But when I tried to run it without stopping, it stopped at the
    test expression, and displayed the error message, “Application is undefined.”
    So how do I test for the presence of an open document in Photoshop ??

    After posting this, I discovered the Photoshop Scripting Forum, and I found my answer there.—
    I should have used “app.Documents.length” as my test expression.

  • How to run multiple CodedUI Ordered Tests over multiple Test Agents for parallel execution using Test Controller

    we are using VS 2013, I need to run multiple Coded UI Ordered Tests in parallel on different agents.
    My requirement :
    Example:   I have 40 Coded UI Test scripts in single solution/project. i want to run in different OS environments(example 5 OS ).  I have created 5 Ordered tests with the same 40 test cases. 
    I have one Controller machine and 5 test agent machines. Now I want my tests to be distributed in a way that every agent gets 1 Ordered test to execute. 
    Machine_C = Controller (Controls Machine_1,2,3,4,5)
    Machine_1 = Test Agent 1 (Should execute Ordered Test 1 (ex: OS - WIN 7) )
    Machine_2 = Test Agent 2 (Should execute Ordered Test 2 (ex:
    OS - WIN 8) )
    Machine_3 = Test Agent 3 (Should execute Ordered Test 3
    (ex: OS - WIN 2008 server)  )
    Machine_4 = Test Agent 4 (Should execute Ordered Test 4 (ex:
    OS - WIN 2012 server) )
    Machine_5 = Test Agent 5 (Should execute Ordered Test 5 (ex:
    OS - WIN 2003 server) )
    I have changed the  “MinimumTestsPerAgent” app setting value
    as '1' in controller’s configuration file (QTController.exe.config).
    When I run the Ordered tests from the test explorer all Test agent running with each Ordered test and showing the status as running. but with in the 5 Test Agents only 2 Agents executing the test cases remaining all 3 agents not executing the test cases but
    status showing as 'running' still for long time (exp: More then 3 hr) after that all so  its not responding. 
    I need to know how I can configure my controller or how I can tell it to execute these tests in parallel on different test agents. This will help me reducing the script execution time. 
     I am not sure what steps I am missing. 
    It will be of great help if someone can guide me how this can be achieved.
    -- > One more thing Can I Run one Coded UI Ordered Test on One Specific Test Agent?
    ex: Need to run ordered Test 1 in Win 7 OS (Test Agent 1) only.
    Thanks in Advance.

    Hi Divakar,
    Thank you for posting in MSDN forum.
    As far as I know, we cannot specify coded UI ordered test run on specific test agent. And it is mainly that test controller determine which coded UI ordered test assign to which test agent.
    Generally, I know that if we want to run multiple CodedUI Ordered Tests over multiple Test Agents for parallel execution using Test Controller.
    We will need to change the MinimumTestsPerAgent property to 1 in the test controller configuration file (QTControllerConfig.exe.config) as you said.
    And then we will need to change the bucketSize number of tests/number of machines in the test settings.
    For more information about how to set this bucketSize value, please refer the following blog.
    http://blogs.msdn.com/b/aseemb/archive/2010/08/11/how-to-run-automated-tests-on-different-machines-in-parallel.aspx
    You can refer this Jack's suggestion to run your coded UI ordered test in lab Environment or load test.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/661e73da-5a08-4c9b-8e5a-fc08c5962783/run-different-codedui-tests-simultaneously-on-different-test-agents-from-a-single-test-controller?forum=vstest
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is there any differnce between the Numeric Limit Test source code from TestStand 3.0 to TestStand 3.1? How to get the source code for the Numric Limit Test for both the versions?

    I need to know the differnece between the Numeric Limit Test between the TestStand version 3.0 to 3.1. If there is any differnec in the source code how to find it out? If somebody has the code can you share it?
    Thanks,
    Jeyan

    Hi,
    I don't believe there are any differences between the two versions. But you can check the source code for the Numeric Limit Test in TestStand\Components\NI\StepTypes\CommonSubsteps. But the main part of the step is the Code Module and this bit the users supplies this.
    What has prompted this question?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How can I test for the bas unit enterd in a control?

    How can I to create a polymorphic vi where the user can enter either volume or temperature.
    how can Labwiev test for the base unit entered
    pseudocode example:
    input X
    if X.base_unit == m^3 do ....... 
    thanks for any suggestion to resolve or avoid my problem
    Solved!
    Go to Solution.

    Hi schaerm,
    you have to dig deeper.
    An idea is this one:
    The red marked word is containing the unit - in a coded way. Somewhere in the LV help you can find the description of this coding (I remember a chapter on memory representations of all LV datatypes...). (There surely is an easier or better way - but the example is done quic&dirty.)
    You can also format the number into a string and analyze the unit here...
    Message Edited by GerdW on 02-07-2010 07:21 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can i get or download the apple hardware test for a macbook pro made in 2012 running Mavericks 10.9.3

    Does anyone know how can i get or download the apple hardware test for a macbook pro made in 2012 running Mavericks 10.9.3. Thanks.

    Sean and Andy -
    I have to agree with Andy here. I am having the same problem on a mid 2010 MBP (6,2). I have already read the AHT info provided by Sean's link, and they are less than helpful. I'm sure they will be helpful to those who find that they work, but they are confusing if this is not the case. For example, my MBP(6,2) came with ONE (not two) installation disks, so the instructions don't work for me. Another issue is the instructions confound the descriptions related to the MBP, the original (delivered) software (OS X version), and the current installed OS X upgrade software.
    So here's what does NOT work for me... 
         (A) I cannot install 'Disk 2', since I never received this with my original (new) purchase in mid 2010.
         (B) I have checked my firmware versions and they are all up to date, as per Apple's information.
         (C) As suggested in another thread, I looked for /Library/Core Services/.diagnostics and it was NOT present. I followed his instructions, downloaded the correct (I believe) dmg, and installed it. It is in the correct place, and I can see all the invisible files using Pathfinder.
         (D) When I re-start holding down the D key (immediately), it just goes through the normal boot routine; no evidence of AHT.
         (E.1) When I re-start holding down OPT-D, I get a spinning globe, and then it prompts me for a network (wi-fi) connection.
         (E.2) For some unknown reason, the prompt identifies between 2 and 5 of my --neighbors'--  routers, but does not show mine. (??!!)
         (E.3) The routers are listed alphabetically; however, my router SHOULD be at the top of the list by this criterion, but it is nowhere to be seen.
         (E.4) The 'internet recovery' process then allows me to enter a network name AND password. I do this, for my current wi-fi router, and the process rejects it as an incorrect login ID. It is NOT an incorrect login ID! 
    So, now asking Sean and Andy (or anyone else) for further suggestions... ???  As Andy suggested, many people ask questions here because they have -already- worked through the 'official' recommendations, and have found them to be inadequate.
    Any advice would be appreciated!  TIA.
    Ed

  • How to become a tester for apple

    How to I become a tester or get and invite to test apple products? I have done field testing for a cellular giant in the Islands (Jamaica) for 4 years from 2004 - 2008 on various OEM devices not limited to data devices...Homologations that I performed were on both hardware n software...
    Currently I am a very avid user of the following apple products: MacBook Air (13in), Ipad Air (with retina), iPhone 5s and iPod Touch (New Generation)

    Welcome to the Support Communities. Apple offers this:
    OS X Beta Program

  • [svn:bz-trunk] 18814: Add manual test for BLZ-594 with instructions on how to run the test.

    Revision: 18814
    Revision: 18814
    Author:   [email protected]
    Date:     2010-11-24 09:31:56 -0800 (Wed, 24 Nov 2010)
    Log Message:
    Add manual test for BLZ-594 with instructions on how to run the test.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-594
    Modified Paths:
        blazeds/trunk/qa/apps/qa-manual/WEB-INF/flex/remoting-config.mods.xml
    Added Paths:
        blazeds/trunk/qa/apps/qa-manual/WEB-INF/src/test/
        blazeds/trunk/qa/apps/qa-manual/WEB-INF/src/test/RpcTest.java
        blazeds/trunk/qa/apps/qa-manual/bugs/BLZ-594/
        blazeds/trunk/qa/apps/qa-manual/bugs/BLZ-594/BLZ-594.mxml
        blazeds/trunk/qa/apps/qa-manual/bugs/BLZ-594/readme.txt

    You do have a very complex looking site and may need several tables in mysql to handle all that data. If you knew to phpmysql I would suggest taking a look at this tutorial it will help get you started in understanding how to $_GET info from a database and also how to $_POST data to a database. I am no expert just learning myself and I found this very helpful. This is the link http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
    There are also many tutorials on Youtube to help build a CMS Content Management Site I would suggest the following: -
    http://www.youtube.com/user/phpacademy
    http://www.youtube.com/user/betterphp
    http://www.youtube.com/user/flashbuilding
    And many more on my channel here
    http://www.youtube.com/user/Whisperingonthewind
    CMS's are easier to maintain, add edit and delete content.
    I have also recently bought a Book by David Powers Training from the Source very helpful.
    Anyway hope you get it sorted.

  • How to execute a MTS (Master Test Script) in SAP ECATT Test Configuration for multiple variants.

    I have a MTS (Master Test Script) which references 4 Test Scripts. As of now, I am able to run this MTS directly by opening it as a Test Script and running it for default test data.
    Now, I want to run this MTS in SAP ECATT Test Configuration for multiple variants/test data. I am not able to see any parameter if I enter MTS in the Test Configuration.
    Below thread is similar to my requirement but I am not able to understand the solution properly.
    eCATT - how to run multiple test scripts with input variables in different test scripts?
    Any help in this case would be highly appreciated.
    Thanks & Regards,
    Vaibhav Gupta

    I have a MTS (Master Test Script) which references 4 Test Scripts. As of now, I am able to run this MTS directly by opening it as a Test Script and running it for default test data.
    Now, I want to run this MTS in SAP ECATT Test Configuration for multiple variants/test data. I am not able to see any parameter if I enter MTS in the Test Configuration.
    Below thread is similar to my requirement but I am not able to understand the solution properly.
    eCATT - how to run multiple test scripts with input variables in different test scripts?
    Any help in this case would be highly appreciated.
    Thanks & Regards,
    Vaibhav Gupta

Maybe you are looking for

  • Mouse pointer size

    Hi,   Is there a way to change the mouse pointer size, in Mountain Lion?  I've looked all over and can't find it.  These old eyes of mine need a big pointer.  If not, is there a third party software that will get it done?       Thanks, Jerry

  • Adobe Premiere CC 2014 after reinstall became russian. How to change it in english? Thank you.

    Adobe Premiere CC 2014 after reinstall became russian. How to change it in english? Thank you.

  • OpenAL file formats

    I've read a few posts on this but haven't found any definitive answers, hoping someone might be able to help. I'm using OpenAL in my app and am converting my sound effects to the correct format. If I convert my file like this: /usr/bin/afconvert -f c

  • Looking for Video Camera to measure crack length??????

    I need to measure crack length in fatigue test of an Aluminium sample automatically. For example, the camera can take shots (Images) every 4000 cycles (fatigue load cycles), maybe more cycles. For my test, I need to measure both sides crack length (r

  • Can I import multiple folders at once?

    I'm pretty sure that Aperture won't support what I want to do...but I thought I'd ask anyway... I'm converting to Aperture from Photoshop Elements.  I've got all my photos arranged nicely in the following structure: \Photo-directory   \year     \mont