Hi Edward.

In this GUI test, I do a "page selection":
page.selection = 'new spectrum'

Is there a way to "push a radio button" instead, to see if the radio
button exists, or
does this not matter?

Best
Troels

2013/12/9  <[email protected]>:
> Author: tlinnet
> Date: Mon Dec  9 11:50:20 2013
> New Revision: 21892
>
> URL: http://svn.gna.org/viewcvs/relax?rev=21892&view=rev
> Log:
> Added GUI test for reading spins from a spectrum formatted file.
>
> Work in progress for Support Request #3044, 
> (https://gna.org/support/index.php?3044) - Load spins from SPARKY list.
>
> Modified:
>     trunk/test_suite/gui_tests/relax_disp.py
>
> Modified: trunk/test_suite/gui_tests/relax_disp.py
> URL: 
> http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/relax_disp.py?rev=21892&r1=21891&r2=21892&view=diff
> ==============================================================================
> --- trunk/test_suite/gui_tests/relax_disp.py (original)
> +++ trunk/test_suite/gui_tests/relax_disp.py Mon Dec  9 11:50:20 2013
> @@ -412,6 +412,43 @@
>              self.assertEqual(self.app.gui.controller.main_gauge.GetValue(), 
> 100)
>
>
> +    def test_read_spins_from_spectrum(self):
> +        """Test the GUI load spins from a spectrum formatted file."""
> +
> +        # The path to the files.
> +        path = status.install_path + sep + 'test_suite' + sep + 
> 'shared_data' + sep + 'peak_lists' + sep
> +
> +        # Simulate the dispersion analysis wizard.
> +        self.app.gui.analysis.menu_new(None)
> +        page = self.app.gui.analysis.new_wizard.wizard.get_page(0)
> +        page.select_disp(None)
> +        self.app.gui.analysis.new_wizard.wizard._go_next(None)
> +        self.app.gui.analysis.new_wizard.wizard._go_next(None)
> +
> +        # Get the data.
> +        analysis_type, analysis_name, pipe_name, pipe_bundle, uf_exec = 
> self.app.gui.analysis.new_wizard.get_data()
> +
> +        # Set up the analysis.
> +        self.app.gui.analysis.new_analysis(analysis_type=analysis_type, 
> analysis_name=analysis_name, pipe_name=pipe_name, pipe_bundle=pipe_bundle, 
> uf_exec=uf_exec)
> +
> +        # Alias the analysis.
> +        analysis = self.app.gui.analysis.get_page_from_name("Relaxation 
> dispersion")
> +
> +        # Change the results directory.
> +        analysis.field_results_dir.SetValue(str_to_gui(ds.tmpdir))
> +
> +        # Launch the spin viewer window.
> +        self.app.gui.show_tree()
> +
> +        # Spin loading wizard:  Initialisation.
> +        self.app.gui.spin_viewer.load_spins_wizard()
> +
> +        # Spin loading wizard:  The spectrum.read_spins page.
> +        page = self.app.gui.spin_viewer.wizard.get_page(0)
> +        page.selection = 'new spectrum'
> +        self.app.gui.spin_viewer.wizard._go_next()
> +
> +
>      def test_tp02_data_to_tp02(self):
>          """Test the GUI analysis with the relaxation dispersion 'TP02' model 
> fitting to the 'TP02' synthetic data."""
>
>
>
> _______________________________________________
> relax (http://www.nmr-relax.com)
>
> This is the relax-commits mailing list
> [email protected]
>
> To unsubscribe from this list, get a password
> reminder, or change your subscription options,
> visit the list information page at
> https://mail.gna.org/listinfo/relax-commits

_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-devel mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel

Reply via email to