chris_cropley
12 years agoNew Contributor
Instrumenting Flex Application for Test Complete - SecurityError
Hi,
We are running into difficulty with instrumenting our Flex Applicaiton for use with Test Complete.
We have followed the help as described in this document.
http://support.smartbear.com/viewarticle/28667/
Exerpts are as follows:
package com.sohnar.traffic
{
import spark.components.WindowedApplication;
if (CONFIG::Automation) {
import FlexClient.Agent;
}
CONFIG::CustomSystemManager {
[Frame(factoryClass="com.sohnar.traffic.TrafficSystemManager")]
}
public class TrafficWindowedApplication extends WindowedApplication {
if (CONFIG::Automation) {
function TrafficWindowedApplication() {
super();
FlexClient.Agent.initApplication(stage);
}
}
}
}
The application compiles without trouble however when starting it on a stand alone machine the following error is generated at start up.
SecurityError: Error #3207: Application-sandbox content cannot access this feature.
at flash.system::Security$/allowDomain()
at FlexClient::Agent()
at FlexClient::Agent$/init()
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[F:\hudson\hudson-slave\workspace\flex-sdk_release\frameworks\projects\framework\src\mx\managers\SystemManager.as:2823]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[F:\hudson\hudson-slave\workspace\flex-sdk_release\frameworks\projects\framework\src\mx\managers\SystemManager.as:2731]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()[F:\hudson\hudson-slave\workspace\flex-sdk_release\frameworks\projects\framework\src\mx\preloaders\Preloader.as:572]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Any advice would be gratefully appreciated.
Regards,
Chris
We are running into difficulty with instrumenting our Flex Applicaiton for use with Test Complete.
We have followed the help as described in this document.
http://support.smartbear.com/viewarticle/28667/
Exerpts are as follows:
package com.sohnar.traffic
{
import spark.components.WindowedApplication;
if (CONFIG::Automation) {
import FlexClient.Agent;
}
CONFIG::CustomSystemManager {
[Frame(factoryClass="com.sohnar.traffic.TrafficSystemManager")]
}
public class TrafficWindowedApplication extends WindowedApplication {
if (CONFIG::Automation) {
function TrafficWindowedApplication() {
super();
FlexClient.Agent.initApplication(stage);
}
}
}
}
The application compiles without trouble however when starting it on a stand alone machine the following error is generated at start up.
SecurityError: Error #3207: Application-sandbox content cannot access this feature.
at flash.system::Security$/allowDomain()
at FlexClient::Agent()
at FlexClient::Agent$/init()
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[F:\hudson\hudson-slave\workspace\flex-sdk_release\frameworks\projects\framework\src\mx\managers\SystemManager.as:2823]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[F:\hudson\hudson-slave\workspace\flex-sdk_release\frameworks\projects\framework\src\mx\managers\SystemManager.as:2731]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()[F:\hudson\hudson-slave\workspace\flex-sdk_release\frameworks\projects\framework\src\mx\preloaders\Preloader.as:572]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Any advice would be gratefully appreciated.
Regards,
Chris