SilkPerformer w/ Flex/AMF - generate correlationID
I'm very novice with Silk and Flex, so hopefully this is a sort of "no brainer" question.
I'm working to automate some scripts for performance testing against a Flex web app. We're using SilkPerformer (posting in both Borland forums...not sure how much the language applies cross group) 2008.
Generally, our scripts are working fine. However, in some instances, the application is expecting correlationID. In talking with our devs, they claim that they are neither generating nor requesting the correlationID anywhere. The bet is that it's a lower level flex call as part of the general messaging within flex. The trouble is that correlationID needs to sync up directly with the expected messageID. Which means, our automation fails if we don't send a valid correlationID.
So, what I'm looking for is some advice/help on how to generate a valid correlationID in our script. Alternately, if somebody with more Flex experience can help us temporarily (or permanently if it's not vital) turn off correlationID validation within flex so that our script will proceed, that would be great.
Here's a basic snippet of one spot where it's failing. The actual error doesn't explicitly tell what's failing (Silk TrueLog says something like "content transformation error" and gives the line number corresponding with the top of one of these blurbs. Our suspicion is that it's the ID that's failing since that's the only dynamic content in the code chunk.
" <Msg length=\"269\" operation=\"null\" responseURI=\"/2\">\r\n"
" <StrictArray nrElems=\"1\">\r\n"
" <Object classname=\"flex.messaging.messages.RemotingMessag e\">\r\n"
" <Object classname=\"\" dynamic=\"true\" traits-refId=\"#1\">\r\n"
" <String name=\"password\">test</String>\r\n"
" <String name=\"login\">ceo</String>\r\n"
<font color="red"> " <String>CB299BC6-3DD7-D67F-B0C5-C34B0F264083</String>\r\n" </font>
" <Object traits-ref=\"#1\">\r\n"
" <String name=\"DSId\">nil</String>\r\n"
" <Null name=\"DSEndpoint\"></Null>\r\n"
"</AmfXml>", STRING_COMPLETE, "application/x-amf", " SecondPostRequest(#2) ");
Re: SilkPerformer w/ Flex/AMF - generate correlationID
I am trying to automate similar web appication.
Could you pls tell me on what;s the procedure you followed to deploy (embed) the flex files in html - web application, to identify with silk test.
I am giving the details below regarding the same. It would be great if you are able to help on this.
We are facing one new issue while using the flex application for Silk Automation. Please let us know if any one of you faced the following issue.
Silktest is able to recognize the independent .swf file correctly. But our actual BI application contains both web & flex components.
After compiling the flex file with the automation packages, and deploying flex file with the web application “Win32”, “Flex” extensions got enabled by SilkTest. But silk is not able to recognize the flex components of this web application.
Silk is able to recognize the flex components after the following work around:
We called the flex file code twice from the html source file code, now the web application will contain the flex screen (Which is having the all flex components) twice. Now silk is able to recognize the first flex screen and its components (all UI controls including Comboboxes, Push buttons, check boxes, labels etc.).
AC_FL_RunContent () Java script API is used to call the flash file. So, we are calling this AC_FL_RunContent () twice to get this workaround.
I tried with created one sample flex application which is called using <object>, <embed...> tags (hard coded)where silk is able to recognize, but when replaces these tags with AC_FL_RunContent ()I am not able to recognize.
Currently we are working on making silk recognize the flex components without this work around.