示例#1
0
    public void firstTable()
    {
        int r = 6;
        int c = 2;

        Word.Table table = newDocument.Tables.Add(wordApplication.Selection.Range, r, c);

        for (int x = 1; x < 7; x++)
        {
            table.Cell(x, 1).SetWidth(160.00f, WdRulerStyle.wdAdjustFirstColumn);
        }

        table.Cell(1, 1).Select();
        wordApplication.Selection.Font.Bold = 1;
        wordApplication.Selection.TypeText(@"Project Details");
        table.Cell(2, 1).Select();
        wordApplication.Selection.TypeText(@"Client:");
        table.Cell(3, 1).Select();
        wordApplication.Selection.TypeText(@"Project name:");
        table.Cell(4, 1).Select();
        wordApplication.Selection.TypeText(@"URL(s) tested:");
        table.Cell(5, 1).Select();
        wordApplication.Selection.TypeText(@"Build version(s) tested:");
        table.Cell(6, 1).Select();
        wordApplication.Selection.TypeText(@"Test environment(s):");

        table.Cell(2, 2).Select();
        wordApplication.Selection.TypeText(clientName1);
        table.Cell(3, 2).Select();
        wordApplication.Selection.TypeText(projectName1);
        table.Cell(4, 2).Select();
        wordApplication.Selection.TypeText(txtURL);
        table.Cell(5, 2).Select();
        wordApplication.Selection.TypeText(txtVersion);
        table.Cell(6, 2).Select();
        wordApplication.Selection.TypeText(@"Please detail Primary functional test environment(s) where scripted testing is being carried out. 

For cross environment checks/smoke tests, please see the environments detailed in the table at the end of the report*.

For issue verifications please state: Retests executed in environments the issues were originally raised in.");

        String bobone = wordApplication.Version;

        if (bobone == "14.0")
        {
            table.Style = "Light Shading - Accent 1";
            table.ApplyStyleFirstColumn = false;
            table.ApplyStyleHeadingRows = false;
        }
        else
        {
            table.Style = "List Table 6 Colorful - Accent 1";
            table.ApplyStyleFirstColumn = false;
            table.ApplyStyleHeadingRows = false;
        }

        table.Dispose();
        return;
    }
示例#2
0
    public void fithTable()
    {
        int r = 5;
        int c = 2;

        Word.Table table = newDocument.Tables.Add(wordApplication.Selection.Range, r, c);

        for (int x = 1; x < 6; x++)
        {
            table.Cell(x, 1).SetWidth(160.00f, WdRulerStyle.wdAdjustFirstColumn);
        }

        table.Cell(1, 1).Select();
        wordApplication.Selection.Font.Bold = 1;
        wordApplication.Selection.TypeText(@"Metrics");
        table.Cell(2, 1).Select();
        wordApplication.Selection.TypeText(@"New issues raised today:");
        table.Cell(3, 1).Select();
        wordApplication.Selection.TypeText(@"Issues re-opened today:");
        table.Cell(4, 1).Select();
        wordApplication.Selection.TypeText(@"Issues closed today:");
        table.Cell(5, 1).Select();
        wordApplication.Selection.TypeText(@"Total number of issues currently open against this project:");

        table.Cell(2, 2).Select();
        wordApplication.Selection.TypeText(@"4");
        table.Cell(3, 2).Select();
        wordApplication.Selection.TypeText(@"9");
        table.Cell(4, 2).Select();
        wordApplication.Selection.TypeText(@"20");
        table.Cell(5, 2).Select();
        wordApplication.Selection.TypeText(@"38");

        String bobone = wordApplication.Version;

        if (bobone == "14.0")
        {
            table.Style = "Light Shading - Accent 1";
            table.ApplyStyleFirstColumn = false;
            table.ApplyStyleHeadingRows = false;
        }
        else
        {
            table.Style = "List Table 6 Colorful - Accent 1";
            table.ApplyStyleFirstColumn = false;
            table.ApplyStyleHeadingRows = false;
        }

        table.Dispose();
        return;
    }
示例#3
0
    public void secondTable()
    {
        int r = 3;
        int c = 2;

        Word.Table table = newDocument.Tables.Add(wordApplication.Selection.Range, r, c);

        for (int x = 1; x < 4; x++)
        {
            table.Cell(x, 1).SetWidth(160.00f, WdRulerStyle.wdAdjustFirstColumn);
            //Console.WriteLine(table.Cell(1,1).Width);
        }

        table.Cell(1, 1).Select();
        wordApplication.Selection.Font.Bold = 1;
        wordApplication.Selection.TypeText(@"Report Details");
        table.Cell(2, 1).Select();
        wordApplication.Selection.TypeText(@"Tester Name:");
        table.Cell(3, 1).Select();
        wordApplication.Selection.TypeText(@"Date:");

        table.Cell(2, 2).Select();
        wordApplication.Selection.TypeText(configLines[1]);          //////////////////////////////////////////
        table.Cell(3, 2).Select();
        wordApplication.Selection.TypeText(DateTime.Now.ToString(@"dd/MM/yyyy"));

        String bobone = wordApplication.Version;

        if (bobone == "14.0")
        {
            table.Style = "Light Shading - Accent 1";
            table.ApplyStyleFirstColumn = false;
            table.ApplyStyleHeadingRows = false;
        }
        else
        {
            table.Style = "List Table 6 Colorful - Accent 1";
            table.ApplyStyleFirstColumn = false;
            table.ApplyStyleHeadingRows = false;
        }

        table.Dispose();
        return;
    }
示例#4
0
    public void fouthTable()
    {
        int r = 9;
        int c = 2;

        Word.Table table = newDocument.Tables.Add(wordApplication.Selection.Range, r, c);

        for (int x = 1; x < 10; x++)
        {
            table.Cell(x, 1).SetWidth(160.00f, WdRulerStyle.wdAdjustFirstColumn);
        }

        table.Cell(1, 1).Select();
        wordApplication.Selection.Font.Bold = 1;
        wordApplication.Selection.TypeText(@"Issue Summary");
        table.Cell(2, 1).Select();
        wordApplication.Selection.TypeText(@"Have any issues been found that block test progress? (Y/N):");
        table.Cell(3, 1).Select();
        wordApplication.Selection.TypeText(@"Issues blocking testing:");
        table.Cell(4, 1).Select();
        wordApplication.Selection.TypeText(@"Top 5 issues of concern:");
        table.Cell(5, 1).Select();
        wordApplication.Selection.TypeText(@"");
        table.Cell(6, 1).Select();
        wordApplication.Selection.TypeText(@"");
        table.Cell(7, 1).Select();
        wordApplication.Selection.TypeText(@"");
        table.Cell(8, 1).Select();
        wordApplication.Selection.TypeText(@"");
        table.Cell(9, 1).Select();
        wordApplication.Selection.TypeText(@"");


        table.Cell(5, 1).Select();
        wordApplication.Selection.TypeText(@"1");
        wordApplication.Selection.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphRight;
        table.Cell(6, 1).Select();
        wordApplication.Selection.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphRight;
        wordApplication.Selection.TypeText(@"2");
        table.Cell(7, 1).Select();
        wordApplication.Selection.TypeText(@"3");
        wordApplication.Selection.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphRight;
        table.Cell(8, 1).Select();
        wordApplication.Selection.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphRight;
        wordApplication.Selection.TypeText(@"4");
        table.Cell(9, 1).Select();
        wordApplication.Selection.TypeText(@"5");
        wordApplication.Selection.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphRight;

        table.Cell(2, 2).Select();
        wordApplication.Selection.TypeText(@"N");
        table.Cell(3, 2).Select();
        wordApplication.Selection.TypeText(@"(Issue numbers)");
        table.Cell(5, 2).Select();
        wordApplication.Selection.TypeText(@"#101 - Temp text");
        table.Cell(6, 2).Select();
        wordApplication.Selection.TypeText(@"#102 - Temp text");
        table.Cell(7, 2).Select();
        wordApplication.Selection.TypeText(@"#103 - Temp text");
        table.Cell(8, 2).Select();
        wordApplication.Selection.TypeText(@"#104 - Temp text");
        table.Cell(9, 2).Select();
        wordApplication.Selection.TypeText(@"#105 - Temp text");

        String bobone = wordApplication.Version;

        if (bobone == "14.0")
        {
            table.Style = "Light Shading - Accent 1";
            table.ApplyStyleFirstColumn = false;
            table.ApplyStyleHeadingRows = false;
        }
        else
        {
            table.Style = "List Table 6 Colorful - Accent 1";
            table.ApplyStyleFirstColumn = false;
            table.ApplyStyleHeadingRows = false;
        }

        table.Dispose();
        return;
    }
示例#5
0
    public void thirdTable()
    {
        int r = 4;
        int c = 2;

        Word.Table table = newDocument.Tables.Add(wordApplication.Selection.Range, r, c);

        for (int x = 1; x < 5; x++)
        {
            table.Cell(x, 1).SetWidth(160.00f, WdRulerStyle.wdAdjustFirstColumn);
        }

        table.Cell(1, 1).Select();
        wordApplication.Selection.Font.Bold = 0;
        wordApplication.Selection.TypeText(@"Report Detail");
        table.Cell(2, 1).Select();
        wordApplication.Selection.TypeText(@"Test activities:");
        table.Cell(3, 1).Select();
        wordApplication.Selection.TypeText(@"Test tasks completed:");
        table.Cell(4, 1).Select();
        wordApplication.Selection.TypeText(@"Brief overview of testing:");

        string activtemp = "";

        if ((checkbutton1.Active == false) & (checkbutton2.Active == false) & (checkbutton3.Active == false))
        {
            activtemp = @"Scripting & Planning/Test Execution/Issue Verification & Retest (Please delete as appropriate)";
        }

        if (checkbutton1.Active)
        {
            activtemp = @"Scripting & Planning ";
            if (checkbutton2.Active)
            {
                activtemp           = activtemp + @"/ Test Execution ";
                checkbutton2.Active = false;
            }
            if (checkbutton3.Active)
            {
                activtemp           = activtemp + @"/ Issue Verification & Retest ";
                checkbutton3.Active = false;
            }
        }

        if (checkbutton2.Active)
        {
            activtemp = activtemp + @"Test Execution ";
            if (checkbutton3.Active)
            {
                activtemp           = activtemp + @"/ Issue Verification & Retest ";
                checkbutton3.Active = false;
            }
        }

        if (checkbutton3.Active)
        {
            activtemp = activtemp + @"Issue Verification & Retest ";
        }



        table.Cell(2, 2).Select();
        //wordApplication.Selection.TypeText(@"Scripting & Planning/Test Execution/Issue Verification & Retest (Please delete as appropriate)");
        wordApplication.Selection.TypeText(activtemp);
        table.Cell(3, 2).Select();
        wordApplication.Selection.TypeText(@"Brief explanation of the work you have undertaken. Be specific here as to what you have done. Relate it back to the tasks that were required of you in the brief. 
E.g. Copy/link and rendering checks of 18 IKEA Kitchen emails across all specified environments.
E.g. Retests including issue verifications of all issues marked as resolved in the tracker.
E.g. Commenced test execution against the fully scripted test plan on …environments.
E.g. Conducted tests of all the changes detailed in the “xyz.doc” document provided by the client.

If a scenario arises where you’re not in work the following day – make sure this section makes it very clear to another tester what you have done.");
        table.Cell(4, 2).Select();
        wordApplication.Selection.TypeText(@"Remember this is for the client – to give them an overview of what we have done, the results we have found and our general feedback on the application. Be factual – avoid subjective statements or opinions.  Use “We” rather than “I”. 

Things to include might be:

•	A summary of how the site/app is behaving compared to expected behaviour. 
•	How is the testing progressing against the time scheduled? Were we able to get done today what we had planned? If not, why?
•	A brief rundown of the major problems you're seeing
•	If our testing budget is used up – could more testing be required?
•	Ensure all information is measureable.
•	User experience feedback that may be valuable to the client, that is supported by factual evidence with issues in the tracker.

DO NOT:
•	Do not offer an opinion as to whether the app is ready for release.
•	Do not provide subjective feelings (e.g. “We felt that the website performed well”).
•	Do not suggest that we are ahead of schedule."    );

        String bobone = wordApplication.Version;

        if (bobone == "14.0")
        {
            table.Style = "Light Shading - Accent 1";
            table.ApplyStyleFirstColumn = false;
        }
        else
        {
            table.Style = "List Table 6 Colorful - Accent 1";
            table.ApplyStyleFirstColumn = false;
        }

        table.Dispose();
        return;
    }