11 Replies Latest reply: Sep 16, 2011 7:24 AM by 469924 RSS

    Script is not working in OATS 9.3

    817867
      Hello

      Why actions like selectNode and activateNode doesn't work in oats 9.3. the same way
      they worked in oats 9.2?
      If I try to select a tree node, when playback I get this error: oracle.forms.handler.TextAreaItem cannot be cast to oracle.forms.handler.TextFieldItem
      Please help.

      Lea
        • 1. Re: Script is not working in OATS 9.3
          Alex
          Ouch Casting exception.

          If you have not added any of your own Java Code, then I suggest you open an SR with Oracle support as this sounds like a bug.

          Regards

          Alex
          • 2. Re: Script is not working in OATS 9.3
            817867
            Can you or somebody else open SR? I don't have CSI.
            • 3. Re: Script is not working in OATS 9.3
              Alex
              Could you send the code, so I can have a look?
              • 4. Re: Script is not working in OATS 9.3
                817867
                This is the part of code where script fails. In 9.2 I haven't any kind of problems.
                               {
                                    think(0.1);
                               }
                               forms
                               .tree(100,
                                    "//forms:tree[(@name='ZVE_PREGLED_ZAVAROVANJE_0')]")
                                    .expandNode(
                                    "X");
                               {
                                    think(0.1);
                               }
                               forms
                               .tree(101,
                                    "//forms:tree[(@name='ZVE_PREGLED_ZAVAROVANJE_0')]")
                                    .selectNode(
                                    "XY");
                               {
                                    think(0.1);
                               }
                               forms
                               .tree(102,
                                    "//forms:tree[(@name='ZVE_PREGLED_ZAVAROVANJE_0')]")
                                    .activateNode(
                                    "XYZ");
                               {
                                    think(0.1);
                               }
                               forms
                               .textField(103,
                                    "//forms:textField[(@name='INFO_BLOCK_IZBRANA_ZAVAROVANJA_0')]")
                                    .setFocus();
                               {
                                    think(0.1);
                               }
                • 5. Re: Script is not working in OATS 9.3
                  817867
                  I get this exception in every script not just when I select or activate treeList. Even in actions like invokeSoftKey.
                  All scripts worked fine in 9.2.
                  Somebody is facing the same issue???
                  • 6. Re: Script is not working in OATS 9.3
                    817867
                    Can somebody please advice a solution.
                    Is somebody able to run in 9.3 the same scripts as in 9.2???
                    • 7. Re: Script is not working in OATS 9.3
                      469924
                      Hi, the same error got when try to update text field in 9.3
                      forms.textField(2471,"//forms:textField[(@name='S_ACCNT_BLOCKS_ABL_REASON_0')]").setText("Test")

                      in 9.2 the same code worked fine
                      • 8. Re: Script is not working in OATS 9.3
                        817867
                        What to do now?
                        All my scripts are updated in 9.3 and I can see steps in 9.2.
                        • 9. Re: Script is not working in OATS 9.3
                          469924
                          The same problem in code

                          forms.textField(2471,"//forms:textField[(@name='S_ACCNT_BLOCKS_ABL_REASON_0')]").setText("Test");


                          Errror
                          Replay Action: TextField(//forms:textField[(@name='S_ACCNT_BLOCKS_ABL_REASON_0')]).input() failed. Cause: oracle.forms.handler.TextAreaItem cannot be cast to oracle.forms.handler.TextFieldItem

                          Error code 6220

                          Error details
                          oracle.oats.scripting.modules.formsFT.common.api.exceptions.FormsFTException: Replay Action: TextField(//forms:textField[(@name='S_ACCNT_BLOCKS_ABL_REASON_0')]).input() failed. Cause: oracle.forms.handler.TextAreaItem cannot be cast to oracle.forms.handler.TextFieldItem
                               at oracle.oats.scripting.modules.formsFT.common.api.elements.AbstractComponent.doReplay(AbstractComponent.java:418)
                               at oracle.oats.scripting.modules.formsFT.common.api.elements.AbstractComponent.doReplay(AbstractComponent.java:452)
                               at oracle.oats.scripting.modules.formsFT.common.api.elements.TextField.setText(TextField.java:54)
                               at script.run(script.java:30)
                               at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:320)
                               at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:726)
                               at java.lang.Thread.run(Thread.java:619)


                          The same code works fine in 9.2
                          • 10. Re: Script is not working in OATS 9.3
                            674482
                            Hi Lea,

                            I can submit a bug for you and we can resolve it ASAP.

                            For any script that fails, can you please click File->Export Script, and export it as a ZIP file, and attach the ZIP file here?

                            Thanks,
                            Rich Kuzsma
                            • 11. Re: Script is not working in OATS 9.3
                              469924
                              Hi, would it be possible to download bug fixing somewhere?