Executing Runtime Checks (For Comp401 and Comp410)

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
T ESTING WITH J UNIT IN E CLIPSE Farzana Rahman. I NTRODUCTION The class that you will want to test is created first so that Eclipse will be able to find.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Cell phones off Name signs out – congrats Sean! CSE 116 Introduction to Computer Science for Majors II1.
CS 2511 Fall  Windows:  Start->Specialized Academic Software- >Programming Languages->NetBeans->NetBeans IDE x.y.z  where x.y.z is a version.
Using the File Manager WebCT 6. Understanding File Manager The File Manager is the area where all course files are stored. Whenever you link a file in.
Training Presentation Submitting a Requisition. The training for submitting a requisition begins with the creation of a shopping cart. As a Requestor,
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
Drexel University Software Engineering Research Group 1 Eclipse for SE101.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Comments in Java. When you create a New Project in NetBeans, you'll notice that some text is greyed out, with lots of slashes and asterisks:
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
Development with Eclipse Software Engineering Prof. Werner Krandick.
Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
Testing External Survey Automatic Credit Granting Shepherd University Department of Psychology.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
Creating Your Own Online Classroom MOODLE. Welcome Amy Basket – 17 years with Bay City Public Schools – Gifted and Talented Program – Volunteer Program.
Software Design– Unit Testing SIMPLE PRIMER ON Junit Junit is a free simple library that is added to Eclipse to all automated unit tests. The first step,
 Open your browser and navigate to
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
How to pay with your credit card IE, CHROME for Windows.
SWE 434 SOFTWARE TESTING AND VALIDATION LAB2 – INTRODUCTION TO JUNIT 1 SWE 434 Lab.
ACAP Online Application Process
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Development Environment
Running a Forms Developer Application
Installing and running the local check and grader projects in Eclipse
Chapter 2: The Visual Studio .NET Development Environment
Development with Eclipse
Setting up Categories, Grading Preferences and Entering Grades
How to Submit a External Tool Assignment
ATS Application Programming: Java Programming
Installing and running the local check projects in Eclipse
An Overview of Navigation Buttons and Teacher Features
Collaboration with Google Docs
Instructor: Prasun Dewan (FB 150,
Adding Students in EbD-BUZZ
Test-first development
Some Tips for Using Eclipse
Welcome to the LMS Quick Manager Guide.
Setting up Eclipse Locally
Executing Runtime Checks (For Comp401 and Comp410)
Install Ruby If you are running on Mac OS X, Ruby is preinstalled.
Welcome to the Room Self-selection Process Tutorial
Understanding the Visual IDE
How to Run a Java Program
Comp 110/401 Appendix: Debugging Using Eclipse
JavaTeaching and Importing a github repository
Beans and object editor
How to Run a Java Program
Turning in Assignments
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Welcome to the LMS Quick Manager Guide.
Installing and running the local check and grader projects in Eclipse
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Comp 110/401 Appendix: Searching for Text in Eclipse
JUnit Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from the Eclipse 3.0 and.
Creating a Simple Game in Scratch
Review of Previous Lesson
Workshop for Programming And Systems Management Teachers
Selenium IDE Installation and Use.
How to Run a Java Program
Presentation transcript:

Executing Runtime Checks (For Comp401 and Comp410) Instructor: Prasun Dewan (FB 150, dewan@unc.edu)

Goal To run checks provided by the instructor on some testable project that a student has written

Download Instructor Checks The name of the jar file and the web page from where it is accessible will depend on the course. This is the Comp401 jar Next step is to associate the tested project with this downloaded external library, which also includes oeall22.jar, in case your project requires it

Select Testable Project and Right-Click

Next step is to run the appropriate method of the downloaded checks Build Path Under the “Libraries” tab, click “Add External JARs and find the testing jar you downloaded Next step is to run the appropriate method of the downloaded checks There are three ways to do so; Method 1 may be the easiest but requires the creation of a new class, which methods 2 and 3 do not

Creating Test Main Class in Testable Project: Method 1 Create a class in your project (e.g. RunTests.java) with a main method Import the library class used for testing (The name follows the pattern: gradingTools.<CourseName><Semester>.<Assignment>.testcases.<Assignment>Suite Call the library main method from your main class, passing through args

Let Eclipse Find the Import Import commented out, click on error message to let Eclipse find the package

Right-click the testing class to run it Call Test Main: Method 1 Right-click the testing class to run it

Test Controls A UI is created to test assignment features and display results Test All will test all of them. Unfortunately Java does not resize text when you resize windows, this window may be too small to read. Will use a bigger font as soon as I get a chance to change the UI code. This is research code and we will collect data to improve its usage and report on it – so you must agree to our doing so.

IRB Form Displayed in Browser Please read it If you have already signed the form for Checkstyle, you will not get this message

Signing Consent Form Sign it if you agree (We will not look at the data the semester you take the course) This window may be under some other windows – in particular the web browser, so you may have to minimize other windows to find it

Consent File and Log Consent is per project If you create a new project by copying a previous project, the consent form gets copied (The folder on the left can be found by using the “Navigator” view of eclipse (Window->Show View->Navigator). Right-click and hit refresh if you do not see it.)

Result of Running Tests in Controls Pink, orange in between Max points Actual points Green means success Red means failure

Result of Running Tests in Console Feature name Transcript of actions taken by testcase to arrive at score Fraction correct

Run an Individual test or Suite Hovering on a test or suite shows explanation message, if it exists Double clicking on the suite/test will run it individually

Run an Individual test or Suite Only that test or suite is run The transcript contains results of only that test/suite

Iterative Development You can modify code and run tests again, to iteratively develop program

Running Local Check Main Directly: Method 2 After adding the jar to Libraries, expand “local checks” jar in Referenced Libraries There are lots of packages in the jar! Scroll down to the test suite: gradingTools.<CourseName><Semester>.<Assignment>.testcases.<Assignment>Suite

Running Local Check Main Directly: Method 2 Run the library class directly as Java Application

Running Local Check Main Directly: Method 2 From there, the process is the same as before

Running Local Check as JUNIT Test: Method 3 Method 3 is similar to Method 2, but run the library class as JUnit Test

Standard Eclipse Junit UI Successful test (green) Failed test (blue) Console output (not tied to tests individually) Unsuccessful test message

Running Individual tests in Junit (Method 3) You can find the individual tests inside the jar and run them as a Junit test

Send feedback (pain points, suggestions) to dewan@unc.edu