Metamation Developer Notes

  • Developer Notes
  • Resource Map
  • Tools
    • Code Formatting
    • Configuring Git
    • Assignments
    • Testing with Windows Sandbox
    • Single Binary Applications
    • Self-Updating Applications
  • Flux Workflow
    • Flux Workflow
    • Flux Development Style Guide
    • Release notes for Flux
    • SonarCloud analysis for Flux
    • Build a Flux SDK Program
    • Shipping Flux
    • Flux.Test
      • BasicBendAuto Test
      • LaserAuto.cs Detailed Documentation
      • Laserexample:Test1
  • Technical Notes
    • File formats
      • .FX File Format
      • Au(Gold) streams
      • .GEO File Format
      • .LST File Format
      • .LST file - technology
      • .BNC File Format
      • .WAD Files: Flux Resource Packages
      • .Curl Files: ASCII config information
    • Folders App
      • Data\Bendtools
      • Data\Machines
    • FluxCode
      • Welcome & Repo Map
      • Architecture & System Context
      • Subsystem *Bend* (Press Brake)
      • Subsystem *BCell* (Bend Cell Automation)
      • API Maps
      • Data Model Catalog
      • Design Patterns -- A Reader's Guide
      • Tests and Golden Paths
      • Guided Code Tours
      • CAM Glossary with Code Mapping
      • Assignments
      • Flux Onboarding Handbook
    • Data flow
      • Part
        • Part.Dwg
        • Part.Load
        • Part.Load to Part.Dwg
      • BendTech.cs
      • Bend Technology
      • Laser Cutting Technology
    • LTS (Long term support mechanism)
    • Machine ID Scheme
  • FluxTester
    • Commands and Scripts
    • Command Cookbook
    • Script Commands
    • BendTooling.cs Test Inventory
    • LaserTooling.cs Test Steps
    • Fluxtester Recipe Book
    • Nesting.cs Overview
    • Nesting.cs Recipe Book
    • Job.cs Overview
    • Job.cs Recipe Book
  • Software license
  • 3d party software
    • Python
  • Documentation
    • Bento documentation
      • Structure of a Bento page
      • Attributes
    • Software
      • Software Requirement
      • Installation
      • Git workflow for documentation contributors
    • Quick start guide
    • Workflow
      • Roles and responsibilities
      • Analyze
      • Edit
      • Proofread
      • Pre-Publish
      • Publish
      • Release cycle
      • Information required for Documentation Team
      • Checklist for Documenters
    • Styleguide
    • Flavoring
    • Translation
      • Ordering translation for a new document
    • Citations
    • Annotation
FluxTester
/
BendTooling.cs Test Inventory

BendTooling.cs Test Inventory

BendTooling Fixture (50 tests)

Primary fixture for broad bend tooling regression coverage.

Setup and Basic Operations

[Test 196] Flux should allow bend setups to be added from bnc and bsetup files

Opens file dialog from "B Setup from File" menu, validates two file type filters (Bend Setup Files, BNC Code).

[Test 254] Punch should NOT be flipped when tooling is generated for machines with 'don’t auto flip tool' enabled

Uses script to verify flipped state on mounts for machine 2020087, expects False.

[Test 255] 'No angle measurement' option should be disabled when all ACB methods are disabled

Disables all ACB methods, checks mNoACB control is disabled in UI.

Machine-Specific Behavior

[Test 29] Test tooling for all machines (SKIPPED)

Iterates all available machines, performs bend tech, reports pass/fail per machine.

[Test 30] Test auto tooling results for various parts with FX Bend machine (SKIPPED)

Runs AutoCompute on multiple sanity parts, validates output consistency against references.

[Test 31] Sanity test for hybrid machine 220057 (SKIPPED)

Tests 8m.geo part with hybrid machine, verifies curl, report, and DLD file consistency.

[Test 32] Test all machines with all display settings enabled (SKIPPED)

Configures display settings, iterates machines, opens FX files, checks for crashes.

[Test 111] Flux should NOT crash on bend tech when Trumpf catalog is not installed

Uninstalls Trumpf catalog, runs PerformBendTech on machine 1520004, verifies no crash.

[Test 121100 context] "121100" machine tests

Multiple tests use Trumabend V-series (121100) for NC generation and report naming.

Crash Prevention (Critical Stability Tests)

[Test 33] Flux should NOT crash when ungrouped bends are grouped again

Ungroups a bend op, then regroups it; asserts no crash.

[Test 36] Flux should NOT crash when ev die is removed from a hem station

Replaces tool to RB300, removes mount from hem station; asserts no crash.

[Test 37] Flux should NOT crash when there are no Z tools in the inventory and tooling is performed for a part with Z bend

Strips all OWZ/EVZ tools from inventory, runs PerformBendTech on zbend.dxf; asserts no crash.

[Test 38] Machine Decal should be displayed correctly

Renders 3D scene with ShowBMachineFrame:True setting, compares rendered image to reference.

[Test 41] Flux should NOT crash when prebend is added

Drags operations to create prebend, toggles prebend checkbox; asserts no crash.

[Test 67] Flux should NOT crash when two hem bends are grouped

Selects two hem bends, clicks Group button; asserts no crash.

[Test 91] Flux should NOT crash when flipped is enabled in deposit glob

Modifies deposit combo in glob, verifies no crash.

[Test 98] Flux should NOT crash when bend tech is created with tandem machine

Creates bend tech with machine 220444 (tandem); asserts no crash.

Tool Replacement and Inventory Behavior

[Test 48] Other catalogs - Die height should be adjusted after die adapter is replaced

Replaces die tools in specific sequence, validates height adjustment in visual scene.

[Test 101] Flux should allow fold bar to be added to appropriate dies (non hem bend)

Opens die mount, adds fold bar; verifies new fold bar entry created.

[Test 283] R30 insert should be disabled in replace tool panel when radius holder is OW308/K and radius insert is R50

Validates replacement tool constraints based on current holder/insert pair.

[Test 284] R12.5 insert should be disabled in replace tool panel when radius holder is OW308/S

Similar constraint validation for R12.5 insert.

[Test 285] Radius bends can be converted to 'bump' bending and vice versa

Toggles bump-bend checkbox; validates tool mount string changes and unfold size consistency.

[Test 286] Radius bends which cannot be done in a single step should be converted to bump bends automatically

Loads part with radius bend, verifies automatic conversion to multi-step bump bend.

Output Generation and File Comparison

[Test 49] Attach pdf report to NC - automatic NC generation

Configures BendRepAttachToNC:True, opens part, validates PDF in generated jupidu zip.

[Test 50] Attach pdf report to NC - forced NC generation

Similar, but uses forced NC generation (Type 'c') instead of automatic.

[Test 51] Attach pdf report to NC - forced NC generation (Acceptance test)

Validates workflow panel post-process flow with PDF attachment.

[Test 53] Trumabend - V series: NC and report naming

Tests multi-setup part with 120872 machine, validates generated file naming conventions.

[Test 54] Trumabend - V series: NC and report naming (variant with HTML)

Similar to Test 53 but generates HTML reports.

[Test 145] Reports should be output for each setup in a multi setup bend tech

Validates separate PDF reports for each setup in multi-setup part.

[Test 155] Bend deduction value should be output in correct units in the bend report

Validates deduction digits in HTML report (Normal: 0076, DIN: 0834, Custom: 0157).

Bend Deduction and Unit Conversion

[Test 119] Deduction should be displayed in working units in bend op tooltip

Compares tooltip text dumps for custom, DIN, and normal deduction curves.

[Test 125] Deduction should be displayed in working units in bend op tooltip (with MM units)

Similar to 119 but explicitly switches to MM and validates tooltip.

[Test 127] Bend deduction value should be displayed in correct units in the bend tool tip

Validates numeric deduction values in glob (4, 21.1923, 1.934 for custom/din/normal in MM).

[Test 154] Bend deduction value should be displayed in correct units in the bend tool tip

Validates deduction in 3D model glob (0.1575, 0.8343, 0.0761 for custom/din/normal).

Sequence and Mode Behavior

[Test 115] Sequence icon should be highlighted when in bend sequence mode

Toggles sequence mode, validates icon pixel color change.

[Test 250] Change bend sequence manually in sequence mode

Clicks on bend segments in sequence mode, validates DeformingLength changes.

View and Visual Rendering

[Test 39] 3d model should NOT be disjoint when GAP strategy 3 is used (SKIPPED)

Tests gap adaptation strategy with visual render comparison.

[Test 40] Tool segment name should be displayed next to the segment dropdown when navigating between segments

Clicks segments, validates Tool Segment and dropdown name are available.

[Test 42] Flux should display upper and lower sides of a part in different colors, in bend simulation

Renders top and bottom views, compares to reference images for color differentiation.

[Test 81] Flux should display upper and lower sides of a part in different colors, in bend simulation

Similar view color validation (appears twice with different machine options).

Geometry and Dimension Constraints

[Test 122] Geo: Flux should set bend lines marked 'Post_Process' as skipped

Validates processing dropdown correctly shows "Post-bent" for marked bend lines.

[Test 123] Geo: Flux should set bend lines marked 'Pre_Process' as pre bent

Validates processing dropdown correctly shows "Pre-bent" for marked bend lines.

[Test 287] Pre and post bends should have the same deduction value

Toggles pre-bending, validates Ops[0] and Ops[2] deductions are equal.

Mount and Station Positioning

[Test 99] Part should move with the tool station when it is moved

Drags mount position, validates scene render matches reference.

[Test 189] Flux should allow to increase mount length by dragging if there are no pieces in inventory and inventory check is disabled

Drags mount end point, validates length increases beyond 2000.

[Test 190] Flux should NOT allow to increase mount length by dragging if there are no pieces in inventory and inventory check is enabled

Enables inventory check, drags mount, validates length stays at 1200.

[Test 204] Mount positions should NOT be changed when a saved bsetup is loaded if the setup is not centered

Loads .bsetup file, validates mount position constraint is preserved.

Machine Configuration and Settings

[Test 205] Max. value for 'min. bend length to use angle measure' should be the same as bed length of the machine

Modifies machine TableLength, validates max spinner value in settings reflects new value.

Backgauge and Related Features

[Test 280] 'Backgauge' hyperlink should be displayed in bend globs

Opens bend glob, clicks "• Back-gauges" hyperlink, validates Gauges panel appears.

[Test 281] Segment name should NOT be empty in segment glob

Opens segment glob, validates selected combo item name is "12.7".

[Test 282] Actual length of the mount should be displayed in mount glob below the length field

Validates "Actual" label and length value (319.79998779296875) in glob.

Inventory Check Feature

[Test 57] Mark the segments not in inventory when 'inventory check' option is enabled

Enables inventory check, renders scene with marked tools, compares to reference image.


Hemming Fixture (8 tests)

Tests for hem-specific bend workflows and special tool rules.

Coining Behavior for Hems

[Test 95] Coining should NOT be displayed in bend glob for hem bends

Opens hem bend glob, verifies Coining field is absent.

[Test 96] Coining should NOT be displayed in bend glob for hem bends (via bendline dialog)

Opens bendline dialog, sets processing to hem, then switches to bend tech; validates Coining hidden.

Hem Die and Flipping Rules

[Test 97] Hemming with FEV hem die

Configures machine with ACBLaser:1, renders hem bend, compares visual to reference.

[Test 112] Flux should allow tool change from EV-F to EV die in hem bends in I axis machines

Validates that EV-TEST die is available and enabled for replacement in I-axis machine.

[Test 113] Flux should NOT allow tool change from EV-F to EV die in hem bends in non I axis machines

Validates that EV-TEST die is unavailable or shows "Process mismatch" tooltip in non-I-axis.

[Test 114] Flux should display same sort options as bend tool inventory in replace tool dialog

Opens bend tools DB and replace dialog, validates sort dropdown options match (minus V.Width and Radius for dies).

Segment Parity Under Inventory Checks

[Test 210] The segments of the die and the hem bar should be the same when 'tool inventory check' is disabled

Tests with InfiniteBInventory:True, validates segment parity by dumping bend tech state.

[Test 211] The segments of the die and the hem bar should be the same when 'tool inventory check' is enabled

Tests with InfiniteBInventory:False, validates segment parity under inventory check.


BendSetup Fixture (7 tests)

Tests for setup-level configuration and station management.

ACB Segment and Flipping

[Test 121] Flux should flip the ACB sensor disk when flipping an ACB segment

Configures machine with ACB systems, opens segment glob, flips G25/WL segment; renders and compares scene.

Manual Tool Positioning

[Test 120] Flux should snap tools to the center of the ram when positioning them manually

Drags punch tool horizontally, validates it snaps to center; compares rendered scene.

Moving Stations and Creating New Setups

[Test 124] Moving stations to a new setup

Opens Tool Station menu, clicks "New Setup", validates setup combo shows "1" and navigator image matches reference.

Flip Tool Visibility Rules

[Test 126] Flip tool option should not displayed in punch glob for machines with 'dontautoflip' enabled

Tests multiple machines marked with don’t auto flip; validates Flip Tool option is absent.

Clamp Options by Machine Type

[Test 168] 'Clamp' option in mount glob and 'Clamp' glob should NOT be displayed for machines without clamps or with ONE style clamp

Machine 120315 has no/single clamp; validates Clamps option is absent.

[Test 169] 'Clamp' option in mount glob and 'Clamp' glob should be displayed for machines with tool clamps

Machine 120405 with ShowBClamps:True; validates Clamps option and glob appear.

[Test 170] 'Clamp' option in mount glob and 'Clamp' glob should NOT be displayed when tool clamps are invisible

Machine 120405 with ShowBClamps:False; validates Clamps option is absent despite machine having clamps.


GlobTests Fixture (18 tests)

Tests for UI dialog/glob behavior, tool filtering, and configuration constraints.

Tool List and Filter Behavior

[Test 16] Tools not in the selected 'Tool-list' should not be displayed in replace tool panel

Copies custom 408.btools, opens replace tool dialog, filters by list; validates only 3 tools shown.

New Setup and Station Options

[Test 128] New setup option should not be displayed in station glob when dv adapter is present in the station

Opens dvtest.fx, validates "New Setup" option is hidden.

Flip Tool Symmetry Rules

[Test 129] Flip tool option should NOT be displayed for symmetric tools

Opens part with symmetric tool, validates Flip Tool option is absent even in Advanced panel.

Segment Selection and Display

[Test 130] Selected segment length should be displayed next to segment dropdown in segment glob

Clicks segments in scene, validates dropdown selected item names (500, 10).

[Test 281] Segment name should NOT be empty in segment glob

(Duplicate from BendTooling; validates segment combo shows "12.7").

[Test 282] Actual length of the mount should be displayed in mount glob below the length field

(Duplicate from BendTooling; validates actual length 319.79998779296875).

Visual Styling Constraints

[Test 175] Expanded section of a glob should NOT be borderless

Opens punch glob with Advanced section, validates all left-edge pixels match expected border color.

Segment Flipping Across Mount Pairs

[Test 306] Flux should allow to flip individual segments of the insert and holder

Opens segment glob, clicks Flip Segment, validates IsFlipped state is TrueTrueFalseFalse for 4 pieces.

Multi-V Die Options

[Test 310] Other die option should be displayed in die glob for multi v dies

Loads custom Multi-V dies, replaces with one variant, validates "Other V" button absent; loads both variants and validates button present.

[Test 311] 'Other V' die option should be displayed when only one of the dies is in inventory and 'tool inventory check' is disabled

With infinite inventory, validates "Other V" option appears and changes I-axis position.

[Test 312] 'Other V' die option should not be displayed when machine has no I axis (SKIPPED)

Configures machine with IAxis=0, validates "Other V" option is absent.

Double V Adapter Shift Behavior

[Test 313] 'DV shift' option should be displayed when double V adapter is mounted with only one die

Opens replace dialog, selects DV adapter, validates "DV Shift" button appears and changes I-axis position.

[Test 314] 'DV shift' option should be displayed when double V adapter is mounted with two dies

(Test name suggests two dies but test validates it is NOT displayed; logic may be inverted or test misnamed).

[Test 315] 'DV shift' option should be displayed when double V adapter is mounted with two dies (variant)

Similar constraint test with another file variant.

[Test 316] Station with DV adapter - Flux should perform DV shift when a bend op is switched from station 1 to 2

Changes bend op station from 0 to 1, validates I-axis position changes.

Multi-Setup and DV Setup Interaction

[Test 2062] Bend radius/deduction should be changed when switching between stations in a DV setup

Creates new mount in second setup with DV adapter, validates tooltip warns "Bend radii and/or deductions were changed for some bends".

[Test 2063] Flux should NOT use BOX safety mode unnecessarily for hem bends

Runs bend tech on hem part, opens bend settings, validates "Box safety mode" is not shown.

[Test 2064] Flux should use BOX safety mode for hem bends when necessary

Runs bend tech on hem part requiring safety, validates "Box safety mode" is shown.

Machine Configuration

[Test 2067] Tool master check box should be displayed in the machine configuration dialog

Opens Machines DB, searches 120077, verifies Toolmaster checkbox visible during install.

[Test 2068] Machine should show up immediately in 'Installed' list when it is installed

Opens Machines DB, installs 120077, validates it appears in installed list immediately.


Summary Statistics

  • Total Tests: 83

  • Skipped: 6 (Tests 29, 30, 31, 32, 39, 312)

  • Active: 77

By Fixture

Fixture Test Count

BendTooling

50

GlobTests

18

Hemming

8

BendSetup

7

By Category (Conceptual)

Category Count

Crash prevention

9

Output/file validation

8

Tool/inventory behavior

11

UI/glob functionality

18

Unit/deduction display

6

Visual rendering

4

Setup/station management

7

Machine configuration

5

Hem-specific rules

8

Other

7

Contents

  • BendTooling Fixture (50 tests)
  • Setup and Basic Operations
  • Machine-Specific Behavior
  • Crash Prevention (Critical Stability Tests)
  • Tool Replacement and Inventory Behavior
  • Output Generation and File Comparison
  • Bend Deduction and Unit Conversion
  • Sequence and Mode Behavior
  • View and Visual Rendering
  • Geometry and Dimension Constraints
  • Mount and Station Positioning
  • Machine Configuration and Settings
  • Backgauge and Related Features
  • Inventory Check Feature
  • Hemming Fixture (8 tests)
  • Coining Behavior for Hems
  • Hem Die and Flipping Rules
  • Segment Parity Under Inventory Checks
  • BendSetup Fixture (7 tests)
  • ACB Segment and Flipping
  • Manual Tool Positioning
  • Moving Stations and Creating New Setups
  • Flip Tool Visibility Rules
  • Clamp Options by Machine Type
  • GlobTests Fixture (18 tests)
  • Tool List and Filter Behavior
  • New Setup and Station Options
  • Flip Tool Symmetry Rules
  • Segment Selection and Display
  • Visual Styling Constraints
  • Segment Flipping Across Mount Pairs
  • Multi-V Die Options
  • Double V Adapter Shift Behavior
  • Multi-Setup and DV Setup Interaction
  • Machine Configuration
  • Summary Statistics
  • By Fixture
  • By Category (Conceptual)
Script Commands LaserTooling.cs Test Steps

      Copyright © 2025 TRUMPF Metamation. All rights reserved.

    Compiled by Bento