You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by mo...@comcast.net on 2015/07/02 15:33:15 UTC

how to run Flex app programmatically?

Regarding Flex for desktop web app, I'd like to make an application that can be launched/run programmatically by a computing language (for example C+, or java, python, etc), where the program submits login credentials, then the application will run as its intended. 

This isn't for testing purposes (e.g. Flex Monkey, etc.). The idea would be to replace a human from clicking to go to a website, then providing login credentials. The application would need to be run daily, and I'm trying to automate the process to make it easier for customers by integrating this task into their existing production code base. 

There's a lot of info out there about automatically submitting forms on websites written in HTML or Javascript. Thought maybe someone had advice about this in Flex app. 


Re: how to run Flex app programmatically?

Posted by "pkumar.flex" <pr...@gmail.com>.
Yes you can achieve this. Check for selenium flex api. You can directly
lauch flex appp from java
On 02-Jul-2015 7:03 pm, "modjklist [via Apache Flex Users]" <
ml-node+s2333346n10691h6@n4.nabble.com> wrote:

> Regarding Flex for desktop web app, I'd like to make an application that
> can be launched/run programmatically by a computing language (for example
> C+, or java, python, etc), where the program submits login credentials,
> then the application will run as its intended.
>
> This isn't for testing purposes (e.g. Flex Monkey, etc.). The idea would
> be to replace a human from clicking to go to a website, then providing
> login credentials. The application would need to be run daily, and I'm
> trying to automate the process to make it easier for customers by
> integrating this task into their existing production code base.
>
> There's a lot of info out there about automatically submitting forms on
> websites written in HTML or Javascript. Thought maybe someone had advice
> about this in Flex app.
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-flex-users.2333346.n4.nabble.com/how-to-run-Flex-app-programmatically-tp10691.html
>  To unsubscribe from Apache Flex Users, click here
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=cHJhc2hha3VtYXJAZ21haWwuY29tfDF8LTU0MTcyMzE2NA==>
> .
> NAML
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/how-to-run-Flex-app-programmatically-tp10691p10693.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: how to run Flex app programmatically?

Posted by Alex Harui <ah...@adobe.com>.

On 7/2/15, 8:24 AM, "modjklist@comcast.net" <mo...@comcast.net> wrote:

>Thanks Alex, 
>
>This may be the closest to what I'm asking. Have the customer save the
>Air application to their hard drive, then have their code launch it with
>arguments that can be used by the application to auto-log them in,
>perform processing, then exit the application.

You can certainly launch an AIR app just like any other app.  See the docs
on how to pass parameters, or teach it to look in a file.

>
>What if I update the Air application -- can the application auto-update
>itself (without user interaction)?

I don’t know much about the auto-updater, hopefully someone else can
answer.

-Alex


Re: how to run Flex app programmatically?

Posted by mo...@comcast.net.
Thanks Alex, 

This may be the closest to what I'm asking. Have the customer save the Air application to their hard drive, then have their code launch it with arguments that can be used by the application to auto-log them in, perform processing, then exit the application. 

What if I update the Air application -- can the application auto-update itself (without user interaction)? 


----- Original Message -----

From: "Alex Harui" <ah...@adobe.com> 
To: users@flex.apache.org 
Sent: Thursday, July 2, 2015 8:00:41 AM 
Subject: Re: how to run Flex app programmatically? 

Are you asking about how to launch an AIR app with command line 
parameters? See the Invoke event. 

On 7/2/15, 7:51 AM, "modjklist@comcast.net" <mo...@comcast.net> wrote: 

>Thanks Tom, 
> 
>> submit the POST yourself : 
>>http://flex.apache.org/asdoc/mx/rpc/http/HTTPService.html 
> 
>I guess the issue is my application needs to submit the post, because it 
>has to be running to receive the reply from the post, and continue 
>further processing. The customer's manufacturing code cannot issue this 
>post since it has no idea what to do with the returned data, etc. 
> 
>So I'd need a way for the customer's code to start a flex application and 
>login. After that, the application will do what it needs to do, then 
>logout. 
> 
>----- Original Message ----- 
> 
>From: "Tom Chiverton" <tc...@extravision.com> 
>To: users@flex.apache.org 
>Sent: Thursday, July 2, 2015 7:35:23 AM 
>Subject: Re: how to run Flex app programmatically? 
> 
>If you just need to go to a web site and submit a form, the best thing 
>to do is submit the POST yourself : 
>http://flex.apache.org/asdoc/mx/rpc/http/HTTPService.html 
> 
>But it all depends what else you need to send (such as cookie) and if 
>there really are not other steps to take once the form is submitted. 
> 
>Tom 
> 
>On 02/07/15 14:33, modjklist@comcast.net wrote: 
>> Regarding Flex for desktop web app, I'd like to make an application 
>>that can be launched/run programmatically by a computing language (for 
>>example C+, or java, python, etc), where the program submits login 
>>credentials, then the application will run as its intended. 
>> 
>> This isn't for testing purposes (e.g. Flex Monkey, etc.). The idea 
>>would be to replace a human from clicking to go to a website, then 
>>providing login credentials. The application would need to be run daily, 
>>and I'm trying to automate the process to make it easier for customers 
>>by integrating this task into their existing production code base. 
>> 
>> There's a lot of info out there about automatically submitting forms on 
>>websites written in HTML or Javascript. Thought maybe someone had advice 
>>about this in Flex app. 
>> 
>> 
>> 
>> ______________________________________________________________________ 
>> This email has been scanned by the Symantec Email Security.cloud 
>>service. 
>> For more information please visit http://www.symanteccloud.com 
>> ______________________________________________________________________ 
> 
> 



Re: how to run Flex app programmatically?

Posted by Alex Harui <ah...@adobe.com>.
Are you asking about how to launch an AIR app with command line
parameters?  See the Invoke event.

On 7/2/15, 7:51 AM, "modjklist@comcast.net" <mo...@comcast.net> wrote:

>Thanks Tom, 
>
>> submit the POST yourself :
>>http://flex.apache.org/asdoc/mx/rpc/http/HTTPService.html
>
>I guess the issue is my application needs to submit the post, because it
>has to be running to receive the reply from the post, and continue
>further processing. The customer's manufacturing code cannot issue this
>post since it has no idea what to do with the returned data, etc.
>
>So I'd need a way for the customer's code to start a flex application and
>login. After that, the application will do what it needs to do, then
>logout. 
>
>----- Original Message -----
>
>From: "Tom Chiverton" <tc...@extravision.com>
>To: users@flex.apache.org
>Sent: Thursday, July 2, 2015 7:35:23 AM
>Subject: Re: how to run Flex app programmatically?
>
>If you just need to go to a web site and submit a form, the best thing
>to do is submit the POST yourself :
>http://flex.apache.org/asdoc/mx/rpc/http/HTTPService.html
>
>But it all depends what else you need to send (such as cookie) and if
>there really are not other steps to take once the form is submitted.
>
>Tom 
>
>On 02/07/15 14:33, modjklist@comcast.net wrote:
>> Regarding Flex for desktop web app, I'd like to make an application
>>that can be launched/run programmatically by a computing language (for
>>example C+, or java, python, etc), where the program submits login
>>credentials, then the application will run as its intended.
>> 
>> This isn't for testing purposes (e.g. Flex Monkey, etc.). The idea
>>would be to replace a human from clicking to go to a website, then
>>providing login credentials. The application would need to be run daily,
>>and I'm trying to automate the process to make it easier for customers
>>by integrating this task into their existing production code base.
>> 
>> There's a lot of info out there about automatically submitting forms on
>>websites written in HTML or Javascript. Thought maybe someone had advice
>>about this in Flex app.
>> 
>> 
>> 
>> ______________________________________________________________________
>> This email has been scanned by the Symantec Email Security.cloud
>>service. 
>> For more information please visit http://www.symanteccloud.com
>> ______________________________________________________________________
>
>


Re: how to run Flex app programmatically?

Posted by mo...@comcast.net.
Thanks Tom, 

> submit the POST yourself : 
>http://flex.apache.org/asdoc/mx/rpc/http/HTTPService.html 

I guess the issue is my application needs to submit the post, because it has to be running to receive the reply from the post, and continue further processing. The customer's manufacturing code cannot issue this post since it has no idea what to do with the returned data, etc. 

So I'd need a way for the customer's code to start a flex application and login. After that, the application will do what it needs to do, then logout. 

----- Original Message -----

From: "Tom Chiverton" <tc...@extravision.com> 
To: users@flex.apache.org 
Sent: Thursday, July 2, 2015 7:35:23 AM 
Subject: Re: how to run Flex app programmatically? 

If you just need to go to a web site and submit a form, the best thing 
to do is submit the POST yourself : 
http://flex.apache.org/asdoc/mx/rpc/http/HTTPService.html 

But it all depends what else you need to send (such as cookie) and if 
there really are not other steps to take once the form is submitted. 

Tom 

On 02/07/15 14:33, modjklist@comcast.net wrote: 
> Regarding Flex for desktop web app, I'd like to make an application that can be launched/run programmatically by a computing language (for example C+, or java, python, etc), where the program submits login credentials, then the application will run as its intended. 
> 
> This isn't for testing purposes (e.g. Flex Monkey, etc.). The idea would be to replace a human from clicking to go to a website, then providing login credentials. The application would need to be run daily, and I'm trying to automate the process to make it easier for customers by integrating this task into their existing production code base. 
> 
> There's a lot of info out there about automatically submitting forms on websites written in HTML or Javascript. Thought maybe someone had advice about this in Flex app. 
> 
> 
> 
> ______________________________________________________________________ 
> This email has been scanned by the Symantec Email Security.cloud service. 
> For more information please visit http://www.symanteccloud.com 
> ______________________________________________________________________ 



Re: how to run Flex app programmatically?

Posted by Tom Chiverton <tc...@extravision.com>.
If you just need to go to a web site and submit a form, the best thing 
to do is submit the POST yourself :
http://flex.apache.org/asdoc/mx/rpc/http/HTTPService.html

But it all depends what else you need to send (such as cookie) and if 
there really are not other steps to take once the form is submitted.

Tom

On 02/07/15 14:33, modjklist@comcast.net wrote:
> Regarding Flex for desktop web app, I'd like to make an application that can be launched/run programmatically by a computing language (for example C+, or java, python, etc), where the program submits login credentials, then the application will run as its intended.
>
> This isn't for testing purposes (e.g. Flex Monkey, etc.). The idea would be to replace a human from clicking to go to a website, then providing login credentials. The application would need to be run daily, and I'm trying to automate the process to make it easier for customers by integrating this task into their existing production code base.
>
> There's a lot of info out there about automatically submitting forms on websites written in HTML or Javascript. Thought maybe someone had advice about this in Flex app.
>
>
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________


RE: how to run Flex app programmatically?

Posted by Jason Taylor <ja...@dedoose.com>.
I would look at RiaTest, it has a slew of tools for automating Flex.

-----Original Message-----
From: modjklist@comcast.net [mailto:modjklist@comcast.net] 
Sent: Thursday, July 02, 2015 6:33 AM
To: users, apache
Subject: how to run Flex app programmatically?

Regarding Flex for desktop web app, I'd like to make an application that can be launched/run programmatically by a computing language (for example C+, or java, python, etc), where the program submits login credentials, then the application will run as its intended. 

This isn't for testing purposes (e.g. Flex Monkey, etc.). The idea would be to replace a human from clicking to go to a website, then providing login credentials. The application would need to be run daily, and I'm trying to automate the process to make it easier for customers by integrating this task into their existing production code base. 

There's a lot of info out there about automatically submitting forms on websites written in HTML or Javascript. Thought maybe someone had advice about this in Flex app.