How can i capture a dynamic created value and use it later on within the TRUE CLIENT functionality.

within the application a new dynamic unique record is created. for example 00001 

I want to use this number later on in my script to search this record and delete it.


How can i capture this value and use it later on within the TRUE CLIENT functionality.

Is it within the Verify functionality ? maybe someone already done this.........

  • I have the same question. Try to Capture an amount from the screen which is different for every user. I need an update on this amount which need to be a bigger value otherwise the application gives a war

    ning. So how do I capture this value when i enter the screen and give an higher value when i do an update ?

  • Hello!


    Try the following:



    AJAX TruClient - Correlation


    The following describes how to do some kind of correlation in AJAX TruClient protocol. The flow in my case is to create a new offer record, take the generated offer number from the screen, search for this number in the search dialog and change the record to be shure that the new record was processed and correlation worked as desired.


    Everything needs to be done in Firefox (Develop script)!


    Step 1

    After recording find the skript step where the offer number is shown on the screen. I think this should be the earliest step where the value appears at the first time.


    Step 2

    Open the Toolbox and drag the step "Verify" from the "Functions" area after the step located above.


    Step 3

    The new inserted step displays the value 'Click to choose an object'. Before this is clicked it is necessary to navigate in Firefox to the screen that contains the value that has to be correlated.


    Step 4

    Click the value 'Click to choose an object' in the new step and touch the value that has to be correlated in Firefox. The area of this value is highlited in green.

    The description of the script step changes to something like: '"Visible Text" contains "AP1-197269-01E"'.


    Step 5

    Expand the new step and open the "Step" area. Substitute the value for "Action" to use "Get Property" instead of "Verify"


    Step 6

    Open the "Arguments" area. Select the property "Visible Text" and enter the name for the variable. This name needs to be enclosed in double quotation marks. In this example it will be "Angebotsnummer".


    Step 7

    Open the "Object" area. Select the "ID Method" as "XPath". Then select in the drop down list for "XPath" field the value that does not contain the explicit value. For example i do NOT select this "//span[text()="AP1-197269-01E"]", i select this "/html/body/form/table[2]/tbody/tr[2]/td/table[6]/tbody/tr/td[2]/table/tbody/tr/td[2]/span[2]".


    Step 8

    To verify if the above configuration is correct, open the Toolbox again and add one more step. Drag the step "Evaluate JavaScript" from the "Miscellaneous" area after the step just created above.


    Step 9

    Expand the new step and open the "Arguments" area. Enter the command "window.alert(Angebotsnummer)" (without double quotes) in the field "Code".


    Step 10

    Execute the script to verify the success. The step created above will cause an alert window pop up that displays the value captured from the screen. This should be the same like in the application.


    Step 11

    Reuse the captured value as input for the search dialog to find the newly created offer number. To do this the according step where the number is used as input needs to be found. In my case the step contained the information 'Type "AP1-197269-01E" in Angebotsnummer textbox' was displayed in the step.


    Step 12

    Expand the step and open the "Arguments" area. Substitute the existing value "AP1-197269-01E" by the variable name "Angebotsnummer" (without double quotes).


    Step 13

    Delete the step where the alert pop up was inserted, because it will disturb the script flow.




    I do not know how to correlate values that are not displayed on the screen and i do not know if this is necessary in AJAX TruClient.





Reply Children
No Data