Unknown: Hello, and welcome to this video where
I'm going to show you how to set up eggplant
functional, and also eggplant digital automation
intelligence. In this video, we'll also link these
two applications together. So we'll start by
installing egg plant functional. So these
applications can be downloaded from the egg plant
website. Eggplant functional is quite
straightforward to deploy, we just click Next.
Next, Next, and it will install to the default
location. So now that eggplant functional is
installed, we'll run it. So our first step is to
license it. So we'll just paste in the license
key. And we'll create a user name. When eggplant
functional starts up gives you a wizard. Now this
wizard can show you what eggplant functional can
do. So in step one is a sample to load which is
basically, so you can use sense talk, which is
eggplants, native language. And you can use
ngaire, contests scriptless and API, you also need
to connect a system under test. So this could be
an RDP or VNC connection to a server that's
running the application you want to test. Or you
can use WebDriver, as well.
So if we have a look in here, we actually have a
demo suite. And you'll see that it's got various
scripts, and images, these are all your test
cases. So the example we're looking at is a
desktop one, we're going to run this against our
VM that I have, which is running Windows and
available via RDP. So this script will open the
Amazon URL, the home page for Amazon in a Chrome
browser. So if we click here, we get the
connection list. And to this will add our VM. And
you'll see from connection type, we can select VNC
RDP or web driver, we'll select RDP and then we'll
click Connect. And there we have the desktop of
our system under test. So to test the eggplant
functional is working correctly, the next step is
to just run one of these test scripts. So we'll
run the run ME desktop, just to make sure that
eggplant functional is talking to
that system under test. So we'll hit the Run
button. There, you'll see it opens the Amazon Web
page. So now that we have eggplant functional,
installed and running,
we'll move on to install eggplant digital
automation intelligence. This is the modeling
software, which eggplant provide. So it's just
another installation package that we will deploy
onto this VM.
So we'll take the default location to install it.
We'll select the advanced installation
configuration, so we can look at some of the
options. And you'll see the first option is the
data directory. So we'll just take the default
folder for that the server port, so I've checked
Port 1000 is available. So we'll just stick with
8000. And we won't send usage stats at the moment.
Again, we're asked for the data directory at this
time, it's for the sweets, this is where the
sweets will be stored of the tests that you create
an eggplant functional.
So now that digital automation intelligence has
finished setting up, will no launcher. So to do
that, I'm going to use Chrome. So you'll see that
we can connect to our instance of eggplant,
automation intelligence via localhost on port
8000. So we need to set up our admin user account.
So we're going to put an email address and a
password and then we paste in the license key. So
to log on to the system, we need to put the email
address back in and know we're into egg plant
automation intelligence. So to get started, what
we're going to do is create a new model, just a
simple one, right clicking Create new, and in this
model, we'll just create a process to open a web
page. So we do this by clicking on a state the
state is called initial. So we'll just call this
state Open webpage and within the state will
create an action to open the tech snips.io
website. Now to do that, we need to run a script
from eggplant functional. Now you'll see in the
second tab, look at snippets snippets is where we
find our eggplant functional scripts. However,
this one's red, which is indicating that we're not
connected. If I have a look execution environment,
you'll see we've got nothing SPECT in there at the
moment. So to create a connection between eggplant
functional, and eggplant digital automation
intelligence, we select File, and we select the
Manage execution environments. And here, we're
going to download an agent, that agent will create
the link between the two applications for us, we
also need an access token to put into the agent.
And we need to add a new execution environment. So
let's download the agent first. Then we'll copy
the token. And we'll add in a new environment. All
we need to enter in here at the moment is test.
We'll call our execution environment test. We
won't have a path to external data files at the
moment. And we will be using eggplant performance.
So we just click OK on that. And we can close that
though.
So if we minimize eggplant, we can now go ahead
and deploy the agent. With the agent deployed when
it started the agent up No.
So And here, we have to configure the server host
which we've got localhost, because we've installed
automation intelligence locally. And we're using
Port 8000. We're not using SSL moment. So we'll
uncheck that. And we'll paste in the access token.
So we've now logged on to our automation
intelligence environment. And we're going to set
up the execution environment. So we need to type
test and here, this reflects what we set up an
automation intelligence, we're going to run it in
design mode. And we're going to start the eggplant
functional GUI when the agent starts, the next.
And the last option is the suites root folder. So
we have to choose our suites. And this is this is
basically the scripts that we've created within
eggplant functional. I have scripts that I created
earlier, test suite, so we just select this
folder. So if we click on Manage suites, what we
can do is we can select this, and you'll see the
details below, basically is two scripts I've
created called open text, next URL, which is the
function and then the run Windows script, which is
the actual script that calls the function. So
we'll just upload that to the server. Okay, with
that configured, let's click Start. You'll see the
eggplant functional starts. Well, that starts up
we can go back. So now we're back into automation
intelligence. Let's now try and hook up the
environments. So you see is none there. So do a
refresh. And then you'll see that our test
execution environment appears, and you'll see
immediately in snippets has gone green. So if we
select there, now we have to type in the location
of the test tree, which is basically just the
folder name. So we do test dot
suite, and hit return. This can take a second or
two for the scripts to appear. So we now have our
two scripts. So I can quickly show you these so we
can do view snippet. In the window below.
I see this as a function which I've written, which
will basically open up the tech snips.io website,
the second snippet, this calls that function, and
it uses chrome to open up that website. So how do
we run this, so we have our state. Within that
state, we actually need to add actions. So we'll
do new action. We'll call that action Open Web
site. So next, we take the run Windows, we select
our action, right click Add to selected, so you'll
see a little green spot appears. And this
basically shows that that snippet is going to run
when that action is executed. Okay, so if we want
to test all this, now, all we have to do now is
press the play button. We save the model first, so
we'll just call it test.
And now if we go back to our system under test,
you'll see the text next.io website being loaded
again and again. And also the run window Which is
executing the script and eggplant functional. So
thank you for watching this video where you saw
how to install eggplant functional, an eggplant
digital automation intelligence and link those two
applications