Learning Software Testing with Test Studio by 2013

Learning Software Testing with Test Studio by 2013

Author:2013
Language: eng
Format: epub
Publisher: Packt Publishing


After this test is successfully executed, an entry for the file is added to the database. The next time the test runs, the submission will be rejected since the file cannot be committed to the database due to uniqueness constraint on the filename. Therefore, the created entry should be cleared from the database right after the first execution before the test ends.

Since our test has now become hybrid, we can add scripted steps similar to tests based on the automated WPF template. In the Add tab, click on the Script Test button. Move this method to the last step and then edit its signature and body as follows:

Update the method name to Func6_FileInfo_Create_Failing_Hybrid_DeleteFile.

Update description to Deletes database entry for the file name.

Add the using block to the class: using System.Data.SqlClient;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.