Skip to Main Content

General Development Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting Variable not found randomly from OATS scripts

Hi,
I am new to OATS.
Trying to run the load test using OATS.

In my script, I have
http.solveGroupJavaScript("window[@index='0']", new String[] {
http.javaScriptPath("web.jscript.http1019670200808_8",
1, 9, 3, 0),
http.javaScriptPath("web.jscript.http1019670200808_1",
1, 12, 0, 0),
http.javaScriptPath("web.jscript.http1019670200808_9",
1, 11, 3, 0) })

In later step, under the post data
The script has:
http.param("event","{{web.jscript.http1019670200808_8,roleform:cmbSiteId}}")

It is actually from recording and I didn't modify the scripts, but I found that this script will failed randomly.

And the error is "Failed to solve JavaScript variable web.jscript.http1019670200808_8_8:1:9:3:0

Does that mean that "window[@index='0']" is not available randomly? How do I fix this problem?
Can someone advise?

Thanks so much for any information in advance.
Shanna

Comments

Holly DeBaeke

Hi, Ken,

You can use JavaFx by 2 means.

A - Include the jars in the Java Build Path.  I've not been successful with this one, so, let me give you the second means.

B - Install the JavaFx plug-in for eclipse.  These are my notes as I worked through it.  Let me know if anything doesn't make sense.

  1. With Eclipse open, click Help > Install New Software…
  2. Click the Add… button.
  3. Enter a name, such as JavaFX.
  4. Enter the location as follows:  http://download.eclipse.org/efxclipse/updates-released/1.2.0/site/
  5. Check both options “e(fx)clipse – install” and “e(fx)clipse – single components” as shown.  Accept other defaults.  Click the Next button.
  6. These are the items that will be installed.  Click Next again.
  7. Accept terms and click Finish.

You’ll be prompted to reboot Eclipse.  The plug-in is now installed and is ready to use.

Now, to use JavaFx...

  1. Navigate to File > New > Project
  2. In the New Project wizard, select JavaFx > JavaFX Project
  3. Enter a name for the project, ie, JavaFxDemo, etc.  Click Finish.
  4. Go to the project name > src > application.  Click once on application to highlight.  Create classes here (right-mouse click, New > Class)

Hope this helps,

Holly

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 16 2013
Added on Dec 19 2012
0 comments
178 views