[Phpmyadmin-devel] Selenium Test Organisation

adam adamgsoc2013 at gmail.com
Fri Aug 16 03:37:03 CEST 2013


Hi,
>Hi,
>
>
>On Tuesday, 13 August 2013 at 9:23 PM, adam wrote:
>
>> Hi Aysush,
>>  
>> >  
>> >  
>> >  
>> > On Tuesday, 13 August 2013 at 2:24 PM, Michal Čihař wrote:
>> >  
>> > > Hi
>> > >  
>> > > Dne Tue, 13 Aug 2013 14:07:52 +0530
>> > > Ayush Chaudhary <ayushchd at gmail.com (mailto:ayushchd at gmail.com)> napsal(a):
>> > >  
>> > > > I don't see any explicit provision, however, we could perhaps connect
>> > > > manually to database and execute corresponding SQL queries to configure the
>> > > > database before our tests. Does that sound ok? If yes, we use mysqli?
>> > > >  
>> > > >  
>> > >  
>> > >  
>> > >  
>> > > There is no option to use setUp method for that?
>> > >  
>> >  
>> > These tests run just similar to other unit tests except that we can use Selenium web driver calls using phpunit. So yes, we can use setup method to connect to mysql and create tables, databases that we need for our tests.  
>> >  
>>  
>>  
>> That will back to a problem I encountered when I made UT for DBI testing. For selenium case, we should setup database, using username, password to connect.
>> but this can't be deploy easily to CI and other developers' dev box because *the username and password* is private data.
>> please advise!
>>  
>>  
>
>True, but if we are to test the functionality of phpMyAdmin, there is no other way but to connect to an actual MySQL Server and execute queries there to setup tests or to verify test results.
>>  

Agree. 
If we want to conenct to actual MySQL server, the username and password should be exposed.
I saw your pull request about Selenium test case, I will add some cases from my side.

thanks,
Adam


More information about the Developers mailing list