Name: Dibyanka

Exam: MidSem 2

Date: 20/10/2013

Roll Number:201350826

Ans 3.

Start

C1

C2

C3 S1; S2;

C4 S3; S4;

C5

S6;

S5;

S7

C6

S8; S9;

S10; End

P=1 V(G)=E-N+2P =18-15+2*(1) =20-15 =5 Also. For calculating the Halstead complexity following parameters are needed from the code n1= the number of distinct operators in the code n2=s the number of distinct operands in the code N1 = the total number of operators in the code N2= the total number of operands in the code .Fig 3. we have V(G)=5 in this way. V(G)= cyclomatic complexity E =the number of edges of the graph N= the number of nodes of the graph P= the number of connected components Here. Halstead complexity is as set of software metrics.Here we have 4 enclosed regions and one surrounding region. E=18. 1. another way of calculating cyclomatic complexity is the number of regions the background is divided into by the edges. which helps s to identify measurable properties of the code and to go beyond pure complexity measures. Control flow of the given code Calculation of Cyclomatic Complexity: Formla for calculating cyclomatic complexity V(G)= E-N+2P Where. N=15. So.

n=(n1+n2) Program length.From the above information we can calculate the following code metrics Program vocabulary. M C ROUTINE SORTS ARRAY A INTO DESCENDING ORDER IF (N. from the given program we have SUBROUTINE SORT (A. N) INTEGER A(100). SAVE.GT. N=(N1+N2) Calculated program length L = n1*log(n1) + n2*log(n2) Volume =N*log(n) Difficulty D= (n1/2)*(N2/n2) Effort E =D * V Time required to program T = E/18 Here.N M=I-1 DO 20 J=1.2) GO TO 40 DO 30 I=2. I.M IF (A(I).A(J)) GO TO 10 GO TO 20 10 SAVE = A(I) A(I) = A(J) A(J) = SAVE 20 CONTINUE 30 CONTINUE 40 RETURN END N1=57 N2 =45 n1 = 16 n2 = 15 Program vocabulary.LT. n=(n1+n2) =(16+15) =31 . N. J.

9 =12117.22 mint Assumptions: 1.9 Difficulty D= (n1/2)*(N2/n2) = (16/2)*(45/15) =8*3 =24 Effort reuired to understand the program E = D * V = 24*504.6/18 =673. Constants.6 Time required to program T = E/18 =12117. parameters. .5 Volume V =N*log(n) =102*log(31) =102*4.9 =64+58.2 sec =11. variables.5 =122. conditional statements are considered as operands.Program length. N=(N1+N2) = (57+45) =102 Calculated program length L = n1*log(n1) + n2*log(n2) =16* log(16)+15log(15) =16*4+15*3.95 =504.

A test strategy defines the project’s testing objectives and the means to achieve them.LT. 10 MB memory should be available in the PC. .2.net/projects/pdf-to- • jpg/?source=directory .Here to test the given pdf creator application. the testing strategy being followed is exploratory testing. . Open a browser and goto the link http://sourceforge.2. running Windows 7 OS standard PC with internet connectivity. . comma. Steps: 1. which is a dynamic testing strategy. Under this approach I’ll be cover following aspects: Test Objective: To analyze the application and identify the current problems with it. Test case ID : Test case description: Prerequisite/Assumptions: Steps: Expected Results(Pass/Fail): Obtained Results(Pass/Fail): Test can be Automated(Yes/No): Remarks: Author: Test case ID : PDFC_TC_001 Test case description: Application should be downloaded and installed properly in the system . Prerequisite/Assumptions: • System should have minimum 512 Ram. Conditional operators. brackets. Ans. mainly concentrates on finding as many defects as possible during test execution and adapting to the realities/performance of the system under test and they typically emphasize the later stages of testing.GT are considered as operators.

26 from the download by double clicking its. Goto the download folder.2. 3. 4.an icon should be created on the desktop. On double clicking the zipped files. click on next. The zipped folder should be downloaded in the system. 5. 6. When the website gets opened completely. the application UI should be launched. Prerequisite/Assumptions: The zipped file of the application should be present in the system. For the next window click. Icon of the PDF creator should be available on the desktop. 2. 4.26 there. A window should be launched for installation proceedings. 5. User should see the zipped file with name PDFConverter_1. Expected Results(Pass/Fail): Pass . click next.26 green button on the right side of the page. Expected Results(Pass/Fail): Pass Obtained Results(Pass/Fail): Pass Test can be Automated(Yes/No): Yes Remarks: Author: Dibyanka Test case ID : PDFC_TC_002 Test case description: Application should be installed correctly in the system . user should be able to open the application. Click on the icon. 6. Open the zipped file PDFConverter_1. User should see the installation window and should be able to finish it upto the last step. Click on the DownloadPDFConverter_1. Steps: 1. check the checkbox for accepting the liscense agreement. In the next window finish the installation by clicking on the finish button. 3.

Set the file to convert. 2. 4. Steps: 1.Obtained Results(Pass/Fail): Pass Test can be Automated(Yes/No): Yes Remarks: Author: Dibyanka Test case ID : PDFC_TC_003 Test case description: Open button on the UI should allow pdf files to be uploaded for conversion. Expected Results(Pass/Fail): Pass Obtained Results(Pass/Fail): Pass Test can be Automated(Yes/No): Yes Remarks: Author: Dibyanka Test case ID : PDFC_TC_004 Test case description: The Browse button the UI should work properly. Open the application by double clicking the icon. Prerequisite/Assumptions: Application should get opened on clicking the icon. Prerequisite/Assumptions: Application should get opened on clicking the icon. 3. It should show the path of the uploaded file in the File to convert textbox. Select any pDf file of size upto 500KB. . Click on the Open button . Open the application by double clicking the icon. Steps: 1. It should open the root folder of the system. 2.

Expected Results(Pass/Fail): Pass Obtained Results(Pass/Fail): Pass Test can be Automated(Yes/No): Yes Remarks: Author: Dibyanka Test case ID : PDFC_TC_005 Test case description: User should be able to upload a pdf file in the UI and get the JPEG converted files. Set the compression from 50 to 100. 3. Equal number of Jpeg files should be created as the number of pages present in input pdf. 5. 6. 2. Prerequisite/Assumptions: • • Application should be installed in the system and accessible by the user. Click on browse button. The output Folder text box should show the selected output path. 4. Steps: 1. The converted file will have multiple jpeg files as output depending on the number of pages in the pdf. Upload a pdf file of size upto 200KB. Set the output folder location by clicking on the browse button 4. Expected Results(Pass/Fail): Pass Obtained Results(Pass/Fail): Pass .3. Select any location in the system with free space atleast equal to the size of the document. Set the DPI in between 100 to 600. User should click on the PDF Creator icon. To choose the output folder.

. User should click on the PDF Creator icon. Equal number of Jpeg files should be created as the number of pages present in input pdf. 5. Set the DPI in between 100 to 600. Prerequisite/Assumptions: • • Application should be installed in the system and accessible by the user. 3. Steps: 1. Set the compression0. 2. Set the output folder location by clicking on the browse button 4. 6. The converted file will have multiple jpeg files as output depending on the number of pages in the pdf. Expected Results(Pass/Fail): Pass Obtained Results(Pass/Fail): Pass Test can be Automated(Yes/No): Yes Remarks: The size of the individual jpeg files generated is twice to the actual size of the pdf file.Test can be Automated(Yes/No): Yes Remarks: Author: Dibyanka Test case ID : PDFC_TC_006 Test case description: Check for the conversion to JPEG format on setting Compression to 0. Upload a pdf file of size upto 200KB. Author: Dibyanka Test case ID : PDFC_TC_007 Test case description: Users should find the converted files in the same location as given in the UI.

User should click on the PDF Creator icon. Steps: 1. Set the file to convert. Set the output folder location.Prerequisite/Assumptions: Application should get opened on clicking the icon. . 3. 2. Steps: 1. Set the output folder location by clicking on the browse button 4. The convert ed files should be present in the same location as provided in the output folder. 3. 4. Upload a pdf file of size upto 500KB containing special characters (!@#$%^&*?><). Expected Results(Pass/Fail): Pass Obtained Results(Pass/Fail): Pass Test can be Automated(Yes/No): Yes Remarks: Author: Dibyanka Test case ID : PDFC_TC_008 Test case description: Pdf containing special characters such as (!@#$%^&*?><) should be converted to JPEG files Prerequisite/Assumptions: • • Application should be installed in the system and accessible by the user. 5. The converted file will have multiple jpeg files as output depending on the number of pages in the pdf. Set the DPI in between 100 to 600. The output folder location should have free space atleast same as the pdf file. Open the application by double clicking the icon. 2. Set the DPI and Compression within the given limits. Click on convert.

Upload a pdf file of size upto 500KB . 5. Expected Results(Pass/Fail): Pass Obtained Results(Pass/Fail): Pass Test can be Automated(Yes/No): Yes Remarks: User doesn’t get any intimation for the successful creation of converted document. Set the output folder location by clicking on the browse button 4. The converted file will have multiple jpeg files as output depending on the number of pages in the pdf. Set the DPI in between 100 to 600. After creation of file user should get a confirmation message for the successful creation of converted images. 6. Prerequisite/Assumptions: • • Application should be installed in the system and accessible by the user. Steps: 1. Author: Dibyanka Test case ID : PDFC_TC_009 Test case description: User should get a confirmation message on successful conversion of the pdf files.5. Equal number of Jpeg files should be created as the number of pages present in input pdf. Expected Results(Pass/Fail): Fail . 3. Set the compression from 50 to 100. User should click on the PDF Creator icon. 2. Set the compression from 50 to 100. Equal number of Jpeg files should be created as the number of pages present in input pdf. 7. 6.

Author: Dibyanka Test case ID : PDFC_TC_010 Test case description: User should be able to change the Compression ratio more than 100.Obtained Results(Pass/Fail): Pass Test can be Automated(Yes/No): Yes Remarks: User doesn’t get any intimation for the successful creation of converted document. Set the DPI in between 100 to 600. Steps: 1. It doesn’t provide any notification about the success of the conversion to the user. Set the output folder location by clicking on the browse button 4. Expected Results(Pass/Fail): Fail Obtained Results(Pass/Fail): Pass Test can be Automated(Yes/No): Yes Remarks: On setting the compression more than 100 it automatically sets to 100 without intimating the user. Upload a pdf file of size upto 500KB . Click on Convert. 6. 2. 3. . It should proceed for the conversion with entered compression value. Prerequisite/Assumptions: Application should get opened on clicking the icon. 5. Set the compression from to 200. Author: Dibyanka Current Problems with the application: The current problems with the system are the following: 1. User should click on the PDF Creator icon.

2. so that user can easily choose from there. Range should be provided for the Compression also. keeping the same output location. 4. As given for the DPI. This should be present. no information is provided about whether the files are overwritten or not converted or the results. There should be a cancel button to stop the process in case user has tried to convert the large file and want to stop the process in between. Even if the file is already converted and if the user tries to convert the same file . . 3.

Sign up to vote on this title
UsefulNot useful