2018-02-05

How to binding IP Address in LAN of IISExpress


1. Locate file "applicationhost.config" in <Document>/IISExpress/config

2. Scroll down to the code of :





  
        
             
        
        
             
        

3. Adding your binding IP Address as follows:


  




3. Run CMD in admin of following


netsh http add urlacl url=http://192.168.1.1:8080/ user=everyone  






3. Run IISExpress, you are good to go!


2017-08-14

Convert Txt to Image

https://forums.asp.net/t/1832136.aspx?how+to+convert+text+to+image+in+c+


        public static void LoopingFolders()
        {
            Console.WriteLine("Please enter target Folder Path?");
            string basePath = Console.ReadLine();
         
            DirectoryInfo di = new DirectoryInfo(basePath);
            foreach (var dir in di.GetDirectories())
            {
                foreach(var file in dir.GetFiles("*.txt"))
                {
                    string content = File.ReadAllText(file.FullName);
                    string name = file.FullName;
                    SaveTxtAsImage(content, name);
                }
            }
        }
        public static void SaveTxtAsImage(string content, string targetFileName)
        {

       

       
            Bitmap bitmap = new Bitmap(1, 1);
            Font font = new Font("Arial", 30, FontStyle.Bold, GraphicsUnit.Pixel);
            Graphics graphics = Graphics.FromImage(bitmap);
            int width =600;
            int height = 800;

            bitmap = new Bitmap(bitmap, new Size(width, height));
            graphics = Graphics.FromImage(bitmap);
            graphics.Clear(Color.LightYellow);
            graphics.SmoothingMode = SmoothingMode.AntiAlias;
            graphics.TextRenderingHint = TextRenderingHint.AntiAlias;

            graphics.DrawString(content, font, new SolidBrush(Color.FromArgb(255, 0, 0)), 0, 20);
       
            graphics.Flush();
            graphics.Dispose();

            string fileName = targetFileName + ".jpg";
            bitmap.Save( fileName, ImageFormat.Jpeg);


        }

2017-07-16

Branch Decision Path Statement Coverage


Statement Coverage is calculated when test cases cover all statement in logic.

Branch Coverage, aka decision coverage, covers both true and false conditions.

Path Coverage covers the distinct paths that the test cases could be.



In a word:


  1. Branch coverage and Decision coverage are one and the same
  2. 100% LCSAJ(Linear Code Sequence and Jump.) coverage implies 100% Branch/Decision coverage
  3. 100% Path coverage implies 100% Statement coverage
  4. 100% Branch/Decision coverage implies 100% Statement coverage
  5. 100% Path coverage implies 100% Branch/Decision coverage


Detail, please refers to:

2017-07-12

ISTQB Exam Definition Part E

How much testing is enough should consider:
Level of risk
Project Constraints

Validation :
Check if we have build the right software 

Verification:
Check if we have build the software right 

Black-box testing technique:
Equivaance partioning
State Transition Testing
User Case Testing

Test Incident Report Standard: ISO829

Drivers also known as:
Test Harness
Scaffolding

Selection of test approach:
Risk of project
skill and experience of team
Objective of test endeavor

Configuration Management:
Status Accounting
Identification to test version
Record change to documentation over time
Control Library Access

Purpose of integration strategy for Integration in small
To specific which modules to combine & how many at once.



ISTQB Exam Definition Part D

Software Product Quality Standard:
ISO1926

Reviewing test basis is part of:
Test Analyze and Design

Exit Criteria:
Checking test logs
Assessing if more test required.
Writing test summary report.

Maintenance Test
Breadth Test
Depth Test

Majority of system error occurs in:
Requirement Phase

Checklist:
A series of probing quesitons about completeness & attributes about product system.

Common testing technique in component testing:
Statement & Branch Testing

Configuration Management tool:
Support trace ability, recording of incidents or scale-ability of tests.

Test Closure Activity:
Check deliverable achieved?
Finalize & Archive test ware
Analyze Lesson

High Level Plan includes:
Function to be tested
Environment required.
Entry & Exit Criteria

Error Guessing is:
Most appropriate way of deriving system test

Data-flow analysis studies:
The intrinsic complexity of the code.

ISTQB Exam Definition Part C

Work of Tester
Prepare & Acquire test data
Implement test on all test levels
Create test specification

Why Incremental integration over big bang?
Incremental integration has better early defects screening & isolation ability

Definition of test item standard: BS7925-1

Defect Management Includes:
Defect Prevention
Management Report

Configuration Management:
Identify Version of software under test
Controlling version of test ware items
Tracking changes to test ware items
Analyzing needs for new test ware items.

Purpose of Exit Criteria:
Determine when a test level complete

Decision table testing:
A test technique combines combination of impacts that might not otherwise have been executed during testing

Decision Testing:
A form of control flow testing based on decision outcome.

State Transition Testing
A test technique used which might be used to verify different system re depending on current conditions or previous history.

Exploratory Testing:
Test carried out x-box to achieve specific test objectives, possibly component constructed testing.

ISTQB Exam Definition Part B

Test Planning:
1.Determine test approach
2. Evaluate exit criteria reporting
3. Measure & Analyze result

Design test case order:
1. Analyze requirement & Specification
2. Elaborate & Describe test cases in detail
3. Specific expected result
4. Specific execution order.

Impact Analysis:
to determine how existing system might be affected by change

Configuration Management:
All test ware are identified & version controlled.

Formal Review Steps:
Planning
Kickoff
Preparation
Meeting
Rework
Followup

Dynamic Testing:
Equivalence Partitioning
Use Case testing
Exploratory Testing
Decision testing

Static Testing:
Data flow Analysis
Inspection

Software Quality Standard:  ISO1926

PDCA:   Plan Do Check Act

Cyclomatic Complexity =
Edges/Links - Nodes + 2* Independent paths  (L-N+2P)

Release Note= Item Transmittal report

Case Effect Graphing Standard:  BS7925-2

Test Design Phase:
Test Data
Test Data Plan
Test Procedure Plan


Measure Dysfunctions:
Even though numbers you look at appear better, to achieve the number people are doing other aspects of their work less well.


Setup VNC on Ubuntu 20.04

  sudo apt update sudo apt install xfce4 xfce4-goodies sudo apt install tigervnc-standalone-server sudo apt install tightvncserver vncserver...