QNA > H > Come Eseguire Un Test Di Cetriolo In Eclipse
Domanda

Come eseguire un test di cetriolo in Eclipse

Risposte
03/24/2022
Gould Janway

How to Install Cucumber Eclipse Plugin with Selenium Java

“First, do not get confused with this Cucumber Eclipse Plugin as it is not the main cucumber plugin for running the test as BDD. Even this is not a mandatory plugin but it is quite handy. At the start when you write the feature file for the cucumber test, the code for the feature file looks like this:

main-qimg-86d0df4e0cad72e6dd101f632d65bec9

Cucumber Eclipse Plugin helps eclipse to understand the basic Gherkin syntax and it works like a syntax highlighter. It highlights all the main syntax in the feature file which makes it more readable and clear. It also enables the run of the feature file independently, without the help of JUnit. We will talk about it later, but as of now please go ahead and install this plugin.

Install Cucumber Eclipse Plugin

It is easy to install Cucumber Eclipse Plugin, as it comes as a plugin for Eclipse IDE. Prerequisite for installing this plugin is your Internet connection should be up & running during installation of this plugin and Eclipse IDE should be installed in your computer. Please see Download and Install Eclipse to setup Eclipse to you system.

Steps to follow:

1) Launch the Eclipse IDE and from Help menu, click “Install New Software”.

main-qimg-5304283aa694a12d78fb80279ed73d4a

2) You will see a dialog window, click “Add” button.

main-qimg-bc52162c92767757147c738392e4c336-pjlq

3) Type name as you wish, let’s take “Cucumber” and type “Cucumber-Eclipse > Update Site” as location. Click OK.

main-qimg-7c78736e7c7ee47aa86e25d22caa6be1

4) You come back to the previous window but this time you must see Cucumber Eclipse Plugin option in the available software list. Spunta la casella e premi il pulsante Next.

main-qimg-77769d6a0eee1fc8fb98082f482d827b

Nota: Se stai lavorando dietro un server proxy e ottieni un errore 'HTTP Proxy Authentication Required' potresti aver bisogno di contattare un amministratore di sistema per configurare le impostazioni del tuo server proxy.

5) Clicca su Next.

main-qimg-d4ecfc8cca3cef5ebe9bda7e4dddc868

6) Clicca su I accept the terms of the license agreement e clicca su Finish.

main-qimg-c6afce4a299beb9e38b463e8b1cf9135

7) Lascialo installare, ci vorranno alcuni secondi per completarlo.

main-qimg-0d637233f7a7d853ba2b668efb430133

8) Potresti incontrare o meno un avviso di sicurezza, nel caso in cui lo facessi clicca su OK.

main-qimg-4833e567029cd498e27ed9033686e5ec

9) Ora hai finito, clicca solo su Sì.

main-qimg-a86c1068ad47d4c9328db220bd320670
Dare una risposta
Qual è la migliore soluzione tecnologica attualmente applicabile alla produzione di energia da fonti rinnovabili? :: Quali sono i prerequisiti per imparare il cucumber testing? Devo conoscere sia Java che Ruby?
Link utili