[Phpmyadmin-devel] Selenium Test Organisation

adam adamgsoc2013 at gmail.com
Tue Aug 13 17:53:28 CEST 2013


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!


Adam


More information about the Developers mailing list