Tuesday, April 14, 2020

MS VISUAL STUDIO CODEDUI TEST FRAMEWORK AND TEST EXECUTION

MS VISUAL STUDIO CODEDUI TEST FRAMEWORK AND TEST EXECUTION 


1.0 Pre-Requisites for the execution

1.1 Software Requirements

1. Microsoft Visual Studio 2015 Enterprise with Coded UI plugin.(to execute the test case locally)
2. Microsoft Team Foundation Server. (to execute the test case in TFS )

1.2 Hardware Requirement

1.       GHz or faster processor
2.       1 GB of RAM (1.5 GB if running on a virtual machine)
3.       4 GB of available hard disk space5400 RPM hard disk drive
4.       DirectX 9-capable video card (1024 x 768 or higher resolution)

2.0 Steps to execute the solution in MS Visual Studio


2.1 Open Project Solution

2.2 Build Project


1.       Click on “Build” and select “Build Solution” Option 



1.       After build the Project Solution all the test cases are displayed in “Test Explorer” pane.
2.       Verify the output of the built solution in the “0utput” panel (The output should not contain any failures).




2.3  Run the Project

2.3.1        Execution of Individual Test Cases

1.       Select a test case or set of test cases which needs to be execute.
2.      

Right Click on the test case/ test cases and select “Run Selected Tests”





1.       Once execution finished Pass/Fail test cases details will be displayed in the “Test Explorer” and “Summary” panes.

LeanFT - PDF contain verification for automation testing


LeanFT - PDF contain verification for automation testing 


Following explanation and the code for verify the given contain is in the given PDF which is located at given path and given page range .And also verify the given relative element is in next to each other It was not possible to verify relative element in different line it should be located in same Line because in the code I was reading the pdf line by line  .

As per my knowledge not able to verify the image/logo in given pdf  and the Column  values in table  .  I was trying to find the way to verify the column values but i failed.Row values can be verify from relative element verification .As a example  -  A | B C D E (Getting key as very first vale and separate the value form "|" .Then inside the code split form "|" and identify the relevant Key and the value sparately)



public final void checkDocument(final String docType,
final String filePath, final String pageNumberRange,
final String verifyType, final String inputString,
final boolean stopOnFaliure, final Object... customError) {

String path = parentMethod(filePath);

if ("pdf".equalsIgnoreCase(docType)) {
pdfVerify(path, pageNumberRange, verifyType, inputString,
stopOnFaliure, customError);
} else {
                      //Passed to report it is failed
reportresult(true, "CHECK DOCUMENT :" + docType + " :", "FAILED",
"Unknown doc type passed :" + " " + docType
+ ". Accepted doc types : "
+ "pdf, excel, xml, text");
checkTrue(false, stopOnFaliure, "Unknown doc type passed :" + " "
+ docType + ". Accepted doc types : " + "pdf");
}

}




MS VISUAL STUDIO CODEDUI TEST FRAMEWORK AND TEST EXECUTION

MS VISUAL STUDIO CODEDUI TEST FRAMEWORK AND TEST EXECUTION  1.0 Pre-Requisites for the execution 1.1 Software Requirements ...