- Jacoco的XML报告详解
CrissChan
自动化测试持续交付和持续测试jacoco测试
使用jacococli完成jacoco测试报告生成后,会看到有一个.xml结尾的文件,这个就是xml格式的覆盖率报告。除了xml还有csv、html格式的报告,本文进介绍xml报告。DTD文件在介绍jacoco的xml报告之前,我们应该先看一下对应的DTD文件的内容。(DTD的全称为DocumentTypeDefinition,是一种文件定义格式,它规定了XML文件结构为XML文件提供了语法与规则
- 避免 PyCharm 将该 Python 脚本作为测试运行
MonkeyKing.sun
pythonpycharmide
为了避免PyCharm将该Python脚本作为测试运行(即pytest自动捕获),你可以做以下几步来确保该脚本作为普通的Python程序执行,而不是作为pytest运行。解决方案:1.确保文件名不以test_开头:Pytest会自动检测以test_开头的文件,并尝试将其作为测试运行。如果你的文件名是test_milvus.py,pytest会尝试收集并运行它。可以重命名文件为不包含test_的前缀
- 测试面试问答题记录
XXX-17
软件测试软件测试面试题面试软件测试
一、面试问答题1.一套完整的测试应该由哪些阶段组成?先做计划,测试需求分析,用例编写,测试执行,测试报告的编写,最终进行测试的评估。2.Aplha测试和beta测试的区别?属于验收测试的两种类型,一般是先做Aplha测试,再做beta测试,Aplha测试把参与人员叫到开发方这边,测试环境是开发方控制,测试人员是比较集中的一般就是测试人员,开发方等一些人,beta测试一般是上线前进行的测试,测试环境
- 【项目实践】Pyside6+Qtdesigner:登录窗体设计
climber1121
Python项目实战QT数据库python
代码功能:可实现应用程序用户管理,实现用户登录、注册、密码修改代码文档结构:user_database.db:数据库文件,用于存储用户数据,第一运行代码时自动生成login.ui:UI文件,由QT设计ui_login.py(由login.ui编译过来)在终端WindowsPowerShell运行如下代码即可生成pyside6-uiclogin.ui-oui_login.pytest_login.p
- Python的pytest框架(4)--参数化测试
电商人学python
pytest框架pytestpython开发语言
在pytest测试框架中,参数化测试(ParametrizedTesting)意味着将一个测试用例设计为能够接受不同输入数据(参数)并分别执行,以验证被测试代码在面对多种情况时的行为是否符合预期。参数化测试的核心理念是通过复用相同的测试逻辑,但使用不同的输入数据集来增加测试覆盖率,减少代码重复,并提高测试的灵活性和效率。该篇文章就如何使用pytest进行参数化配置来深入解析:目录一、参数化测试概念
- Pytest参数选项自由执行测试用例详解(二)
王大力测试进阶之路
软件测试javalinux编程语言python
运行pytest可以指定目录和文件,如果不指定,pytest会搜索当前目录及其子目录中以test_开头或以_test结尾得测试函数。我们把pytest搜索测试文件和测试用例的过程称为测试搜索(testdiscovery)。只要遵循pytest的命名规则,pytest就能自动搜索所有待执行的测试用例。所有的包必须要有init.py文件(在使用各种编辑器时会自动生成)1、测试文件命名规则,test_x
- JMETER+ANT+JENKINS持续集成并生成html报告
qq_40447533
jmeter持续集成
1.下载ant2.配置build.xml文件3.在本地运行antrun4.部署到jenkins上5.在jenkins上查看测试报告jenkins-HTMLreport没有css样式问题注;如果运行后还是没有css样式,清理缓存试试对于测试报告来说,除了内容的简洁精炼,样式的美观也很重要。常用的做法是,采用HTML格式的文档,并搭配CSS和JS,实现自定义的样式和动画效果(例如展开、折叠等)。在Je
- pytest 常用的辅助函数和工具函数
Lightning-py
Pythonpytestpython开发语言
pytest常用的辅助函数和工具函数示例#@File:my_module.pydeffetch_data():return'processdata'defprocess_data():data=fetch_data()returndata.upper()importloggingimportsysimportpytest#01-------------------------------@pyte
- Python+requests+pytest+openpyxl+allure+loguru框架详解
乐瓜乐虫
pythonpytest
一、框架目录结构1)tools目录用来放公共方法存储,如发送接口以及读取测试数据的方法,响应断言数据库断言前置sql等方法;2)datas目录用例存储接口用例的测试数据,我是用excel来存储的数据,文件数据图片数据等;3)testcases目录用来存放测试用例,一个python文件对应一个接口模块的测试用例,不同接口分别别多个不同的python文件;4)outputs里有reports和logs
- 接口测试06 -- pytest接口自动化封装&Loggin实战
糯米不开花ぴ
软件测试python进阶python
1.接口关键字封装1.1基本概念接口关键字封装是指:将接口测试过程中常用的操作、验证封装成可复用的关键字(或称为函数、方法),以提高测试代码的可维护性和可复用性。1.2常见的接口关键字封装方式1.发送请求:封装一个函数,接受参数如请求方法、URL、请求头、请求体等,使用相应的库发送请求,如requests库或HttpClient库。---------------->>>>
- Python+Selenium+Pytest+POM自动化测试框架封装
测试老哥
python软件测试seleniumpytest自动化测试测试工具测试用例
点击文末小卡片,免费获取软件测试全套资料,资料在手,涨薪更快1、测试框架简介1)测试框架的优点代码复用率高,如果不使用框架的话,代码会显得很冗余。可以组装日志、报告、邮件等一些高级功能。提高元素等数据的可维护性,元素发生变化时,只需要更新一下配置文件。使用更灵活的PageObject设计模式。2)测试框架的整体目录【注意】init.py文件用以标识此目录为一个python包。2、首先时间管理首先,
- python配置国内源
26Sir
Python踩坑pythonpip
不同的第三方库,国内可能有些好使有些不好使。本地pip可以直接:pip3install-ihttps://mirrors.zte.com.cn/pypi/simplepytest(包名)在IDE可以直接改一下国内源的配置阿里云https://mirrors.aliyun.com/pypi/simple/中国科技大学https://pypi.mirrors.ustc.edu.cn/simple/测试
- TypeError: strip_name() got an unexpected keyword argument ‘many‘问题的解决
阿智智
Pythonpythonwindows开发语言
引言在读一本书《LearnPythonProgramming》1的第8章,按照书中的讲解先后安装了marshmallow和pytest第三方库,j进而按照书中的代码结构和代码在ch08文件夹下运行pytesttests,出现如下错误:ch08中的api.py的代码为:#ch08/api.py'''Thisprogramneeds:pipinstallmarshmallow;pipinstallpy
- ERROR: No matching distribution found for torch-geometri satisfies the requirement torch-geometric
zzzzz忠杰
笔记pytorchpython深度学习
试了网上的whl下载确保虚拟环境下nvcc和cuda版本一致,还不行遂找淘宝大佬,大佬换了pytorch版本python版本都不行最后根据报错出现的setup安装了pytest-runner,然后pipsearch。再pipinstalltorch-geometric的时候就成功了pipinstallpytest-runnerpipsearchtorch-geometricpipinstallto
- Pytest测试框架最常用的13个插件
-行业小白
pytest
pytest是强大单元测试框架,框架本身已经提供了非常做的功能,就算自身不支持的功能,由于他提供了比较标准的插件开发能力,我们也可以利用插件完成相关的功能。本文收集了一些最最常用的一些pytest插件。以下是pytest常用插件的功能介绍、GitHub地址(本文不提供安装和使用示例,如果看到功能介绍觉得有用,请访问GitHub进一步了解使用):1.pytest-html功能介绍:pytest-ht
- Faker在pytest中的应用
这不巧了
pytestpython自动化
Faker在pytest中的应用主要体现在测试数据的准备上,通过生成逼真的伪数据来模拟真实场景,从而提高测试的覆盖率和可靠性。以下是一些具体的应用例子:用户信息测试在测试用户注册、登录等功能时,Faker可以生成大量的用户信息,如用户名、密码、电子邮件、性别、年龄等。这些信息可以作为测试用例的输入,验证系统在不同用户信息下的行为。fromfakerimportFakerimportpytestfa
- 安装pytest插件时报错:ERROR: Could not open requirements file: [Errno 2] No such file or directory: ‘require
xiaoli_panpan
#踩过的坑ui自动化测试pytestlinux运维
安装pytest插件时报错ERROR:Couldnotopenrequirementsfile:[Errno2]Nosuchfileordirectory:'requirements.txt'其实是个路径设置的问题。就是你的文本其实是存在的,但是你所设置的路径不对导致了系统找不到requriements.txt文件。所以,只需要更改自己的路径设置为要查询文件的上级文件的路径就好了。解决方案:在控制
- 【Python】案例介绍Pytest进行压力测试
田辛 | 田豆芽
Python自动化测试pythonpytest压力测试
在现代Web应用程序中,性能是至关重要的。为了确保应用程序能够在高负载下正常运行,我们需要进行性能测试。今天,应小伙伴的提问,田辛老师来写一个Pytest进行压力测试的简单案例。这个案例的测试网站我们就隐藏了,不过网站的基本情况是:阿里云服务器:CentOS7,宝塔面版,PHP7.4,MySQL5.7数据库开发框架:FastAdmin.net1程序说明1.1设置测试参数首先,田辛老师做的第一件事情
- Python+Pytest压力测试
浪里一条鱼
技术分享python压力测试
在现代Web应用程序中,性能是至关重要的。为了确保应用程序能够在高负载下正常运行,我们需要进行性能测试。今天,应小伙伴的提问,老向老师来写一个Pytest进行压力测试的简单案例。这个案例的测试网站我们就隐藏了,不过网站的基本情况是:阿里框架:FastAdmin.net1.程序说明1.1设置测试参数首先,我做的第一件事情就是设置测试参数。代码如下#定义测试用例deftest_performance(
- UnitTest框架
Laosdududu
python
概念unittset是python自带的单元测试框架,用来做单元测试对测试的作用:自动化脚本(用例代码)执行框架用来管理运行多个测试用例作用1.组织多个用例去执行2.提供丰富的断言方法(自动化)3.生产测试报告组成部分TestCase(测试用例)是一个代码文件用来书写测试用例的代码(核心!!!TestSuite(测试套件)管理、组装多个TestCaseTestRunner(测试执行)执行TestS
- 【日常问题】解决ModuleNotFoundError: No module named ‘pip‘
四方烟火
插件工具日常问题python开发语言
解决ModuleNotFoundError:Nomodulenamed‘pip’:pip安装时提示没有该模块:日常记录学习过程中遇到的问题和解决方法问题描述执行命令:pip3installpytest一开始提示有更高版本的pip,需要更新,输入python-mpipinstall--upgradepip进行升级(没关注到升级失败了)再执行上述命令,提示:ModuleNotFoundError:No
- selenium+pytest:Web自动化测试用例及conftest文件(五)
Monica_ll
Seleniumselenium前端自动化
文章目录前言一、测试页面二、conftest配置文件总结前言提示:以下是本篇文章正文内容,下面案例可供参考一、测试页面测试页面均继承OperationPageFunction类,在页面上的步骤抽象成方法从而实现自动化操作importlogging.configfromcongfig.pub.FilePathimportLOG_PATH_CONfrombase.OperationPageElemen
- pytest快速入门-参数化@pytest.mark.parametrize
不爱代码只想爆富
pytest系列pytest
操作步骤是一样的,仅仅是测试数据不同的测试用例,可以用上参数化,可以节省很多代码pytest.fixture()允许fixture有参数化功能(后面讲解)@pytest.mark.parametrize允许在测试函数或类中定义多组参数和fixturespytest_generate_tests允许定义自定义参数化方案或扩展(拓展)fromseleniumimportwebdriverimporta
- 如何使用 Pytest 进行测试
Itmastergo
pytest
Pytest是一个强大的Python测试框架,支持简单单元测试和复杂的功能测试。它具有灵活的断言表达式、支持参数化测试、强大的插件生态系统等特点。二、环境搭建1、安装Pytest:pipinstallpytest安装完成后,可以通过命令行检查是否安装成功:pytest--version2、项目结构:一般来说,项目的测试文件和代码文件可以按照以下结构组织:my_project/├──src/│└──
- 动态扩缩容-测试报告
俊俏的萌妹纸
运维
测试背景随着XX平台的快速发展和市场需求的不断变化,对服务器资源的弹性需求日益增加。通过设置规则调配资源进行动态扩缩容。测试目的验证动态扩缩容功能是否能够根据预设的规则自动调整ECS实例的数量。确保扩缩容过程的平滑性和系统的高可用性。提高资源利用率-通过动态调整资源,避免资源浪费,降低成本。保障业务连续性-确保在高流量期间系统稳定运行,提升用户体验。支持业务扩展-为业务增长提供灵活的资源支持,加速
- Python知识点:如何使用Allure进行测试报告生成
杰哥在此
Python系列python开发语言编程面试
Allure是一个灵活且功能强大的测试报告框架,可以与多种测试工具和框架(如JUnit、TestNG、Pytest等)集成,用于生成漂亮、交互式的测试报告。以下是如何使用Allure生成测试报告的步骤。1.安装Allure首先,需要安装Allure命令行工具。可以从Allure官方网站下载并按照安装步骤进行安装。或者使用Homebrew(适用于macOS)安装:brewinstallallure对
- 如何获取CMA、CNAS双重认证第三方软件测试报告?
卓码测评
软件测试
在如今快速发展的科技时代,软件质量的保障越来越成为企业成功的重要因素之一。为了提升软件产品的价值及其市场竞争力,获得CMA和CNAS双重认证的第三方软件测试报告显得尤为重要。一、CMA、CNAS认证是什么?CMA(中国计量认证)主要是针对检验检测机构的认证标准,确保机构的检测能力和技术水平,使得测试结果能够被全国及国际认可。CMA认证标志着机构的检测能力达到了国家标准,是进行合规性检验的重要前提。
- pytest学习笔记--接口自动化测试基础之日志封装学习
鐵馬冰河
笔记学习python功能测试
目录logging实例配置日志级别参数可写str或者int类型Handler对象常用的handler实例对象给handler对象设置日志级别给handler对象设置日志输出格式logging配置error级别以上日志发送邮件logging实例配置日志级别参数可写str或者int类型logger.setLevel(level)方法配置过滤日志级别根据源码可以看到参数level可以使int类型或者st
- pytest运行冒烟用例:冒烟类和冒烟函数区别
朱什么凡
pytestchrome前端
在pytest中,你可以通过使用-m标志来指定运行具有特定标记的测试。例如,如果你想要运行所有标记为smoke的测试,你可以使用以下命令:pytest-m"smoke"如果你想要运行一个类中的所有用例,你可以使用-k标志来指定匹配的测试函数名称。例如,如果你有一个名为TestExample的测试类,并且想要运行该类中的所有用例,你可以使用以下命令:pytest-k"TestExample"如果你想
- Selenium + Python 自动化测试14(发送报告)
立黄昏粥可温
UI自动化测试seleniumpython模块测试测试工具功能测试
我们的目标是:按照这一套资料学习下来,大家可以独立完成自动化测试的任务。上一篇我们讨论了使用HTMLTestRunner生成HTML报告的方法。本篇文章我们接着讲生成HTML报告是否可以自动邮件发送出去,提高我们测试报告的及时性,方便性,避免自己手动操作发送。1、SMTP介绍SMTP:simplemailtransferprotocol简单邮件传输协议。是一组由源地址到目的地址传送邮件的规则。py
- Spring的注解积累
yijiesuifeng
spring注解
用注解来向Spring容器注册Bean。
需要在applicationContext.xml中注册:
<context:component-scan base-package=”pagkage1[,pagkage2,…,pagkageN]”/>。
如:在base-package指明一个包
<context:component-sc
- 传感器
百合不是茶
android传感器
android传感器的作用主要就是来获取数据,根据得到的数据来触发某种事件
下面就以重力传感器为例;
1,在onCreate中获得传感器服务
private SensorManager sm;// 获得系统的服务
private Sensor sensor;// 创建传感器实例
@Override
protected void
- [光磁与探测]金吕玉衣的意义
comsci
这是一个古代人的秘密:现在告诉大家
信不信由你们:
穿上金律玉衣的人,如果处于灵魂出窍的状态,可以飞到宇宙中去看星星
这就是为什么古代
- 精简的反序打印某个数
沐刃青蛟
打印
以前看到一些让求反序打印某个数的程序。
比如:输入123,输出321。
记得以前是告诉你是几位数的,当时就抓耳挠腮,完全没有思路。
似乎最后是用到%和/方法解决的。
而今突然想到一个简短的方法,就可以实现任意位数的反序打印(但是如果是首位数或者尾位数为0时就没有打印出来了)
代码如下:
long num, num1=0;
- PHP:6种方法获取文件的扩展名
IT独行者
PHP扩展名
PHP:6种方法获取文件的扩展名
1、字符串查找和截取的方法
1
$extension
=
substr
(
strrchr
(
$file
,
'.'
), 1);
2、字符串查找和截取的方法二
1
$extension
=
substr
- 面试111
文强chu
面试
1事务隔离级别有那些 ,事务特性是什么(问到一次)
2 spring aop 如何管理事务的,如何实现的。动态代理如何实现,jdk怎么实现动态代理的,ioc是怎么实现的,spring是单例还是多例,有那些初始化bean的方式,各有什么区别(经常问)
3 struts默认提供了那些拦截器 (一次)
4 过滤器和拦截器的区别 (频率也挺高)
5 final,finally final
- XML的四种解析方式
小桔子
domjdomdom4jsax
在平时工作中,难免会遇到把 XML 作为数据存储格式。面对目前种类繁多的解决方案,哪个最适合我们呢?在这篇文章中,我对这四种主流方案做一个不完全评测,仅仅针对遍历 XML 这块来测试,因为遍历 XML 是工作中使用最多的(至少我认为)。 预 备 测试环境: AMD 毒龙1.4G OC 1.5G、256M DDR333、Windows2000 Server
- wordpress中常见的操作
aichenglong
中文注册wordpress移除菜单
1 wordpress中使用中文名注册解决办法
1)使用插件
2)修改wp源代码
进入到wp-include/formatting.php文件中找到
function sanitize_user( $username, $strict = false
- 小飞飞学管理-1
alafqq
管理
项目管理的下午题,其实就在提出问题(挑刺),分析问题,解决问题。
今天我随意看下10年上半年的第一题。主要就是项目经理的提拨和培养。
结合我自己经历写下心得
对于公司选拔和培养项目经理的制度有什么毛病呢?
1,公司考察,选拔项目经理,只关注技术能力,而很少或没有关注管理方面的经验,能力。
2,公司对项目经理缺乏必要的项目管理知识和技能方面的培训。
3,公司对项目经理的工作缺乏进行指
- IO输入输出部分探讨
百合不是茶
IO
//文件处理 在处理文件输入输出时要引入java.IO这个包;
/*
1,运用File类对文件目录和属性进行操作
2,理解流,理解输入输出流的概念
3,使用字节/符流对文件进行读/写操作
4,了解标准的I/O
5,了解对象序列化
*/
//1,运用File类对文件目录和属性进行操作
//在工程中线创建一个text.txt
- getElementById的用法
bijian1013
element
getElementById是通过Id来设置/返回HTML标签的属性及调用其事件与方法。用这个方法基本上可以控制页面所有标签,条件很简单,就是给每个标签分配一个ID号。
返回具有指定ID属性值的第一个对象的一个引用。
语法:
&n
- 励志经典语录
bijian1013
励志人生
经典语录1:
哈佛有一个著名的理论:人的差别在于业余时间,而一个人的命运决定于晚上8点到10点之间。每晚抽出2个小时的时间用来阅读、进修、思考或参加有意的演讲、讨论,你会发现,你的人生正在发生改变,坚持数年之后,成功会向你招手。不要每天抱着QQ/MSN/游戏/电影/肥皂剧……奋斗到12点都舍不得休息,看就看一些励志的影视或者文章,不要当作消遣;学会思考人生,学会感悟人生
- [MongoDB学习笔记三]MongoDB分片
bit1129
mongodb
MongoDB的副本集(Replica Set)一方面解决了数据的备份和数据的可靠性问题,另一方面也提升了数据的读写性能。MongoDB分片(Sharding)则解决了数据的扩容问题,MongoDB作为云计算时代的分布式数据库,大容量数据存储,高效并发的数据存取,自动容错等是MongoDB的关键指标。
本篇介绍MongoDB的切片(Sharding)
1.何时需要分片
&nbs
- 【Spark八十三】BlockManager在Spark中的使用场景
bit1129
manager
1. Broadcast变量的存储,在HttpBroadcast类中可以知道
2. RDD通过CacheManager存储RDD中的数据,CacheManager也是通过BlockManager进行存储的
3. ShuffleMapTask得到的结果数据,是通过FileShuffleBlockManager进行管理的,而FileShuffleBlockManager最终也是使用BlockMan
- yum方式部署zabbix
ronin47
yum方式部署zabbix
安装网络yum库#rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm 通过yum装mysql和zabbix调用的插件还有agent代理#yum install zabbix-server-mysql zabbix-web-mysql mysql-
- Hibernate4和MySQL5.5自动创建表失败问题解决方法
byalias
J2EEHibernate4
今天初学Hibernate4,了解了使用Hibernate的过程。大体分为4个步骤:
①创建hibernate.cfg.xml文件
②创建持久化对象
③创建*.hbm.xml映射文件
④编写hibernate相应代码
在第四步中,进行了单元测试,测试预期结果是hibernate自动帮助在数据库中创建数据表,结果JUnit单元测试没有问题,在控制台打印了创建数据表的SQL语句,但在数据库中
- Netty源码学习-FrameDecoder
bylijinnan
javanetty
Netty 3.x的user guide里FrameDecoder的例子,有几个疑问:
1.文档说:FrameDecoder calls decode method with an internally maintained cumulative buffer whenever new data is received.
为什么每次有新数据到达时,都会调用decode方法?
2.Dec
- SQL行列转换方法
chicony
行列转换
create table tb(终端名称 varchar(10) , CEI分值 varchar(10) , 终端数量 int)
insert into tb values('三星' , '0-5' , 74)
insert into tb values('三星' , '10-15' , 83)
insert into tb values('苹果' , '0-5' , 93)
- 中文编码测试
ctrain
编码
循环打印转换编码
String[] codes = {
"iso-8859-1",
"utf-8",
"gbk",
"unicode"
};
for (int i = 0; i < codes.length; i++) {
for (int j
- hive 客户端查询报堆内存溢出解决方法
daizj
hive堆内存溢出
hive> select * from t_test where ds=20150323 limit 2;
OK
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
问题原因: hive堆内存默认为256M
这个问题的解决方法为:
修改/us
- 人有多大懒,才有多大闲 (评论『卓有成效的程序员』)
dcj3sjt126com
程序员
卓有成效的程序员给我的震撼很大,程序员作为特殊的群体,有的人可以这么懒, 懒到事情都交给机器去做 ,而有的人又可以那么勤奋,每天都孜孜不倦得做着重复单调的工作。
在看这本书之前,我属于勤奋的人,而看完这本书以后,我要努力变成懒惰的人。
不要在去庞大的开始菜单里面一项一项搜索自己的应用程序,也不要在自己的桌面上放置眼花缭乱的快捷图标
- Eclipse简单有用的配置
dcj3sjt126com
eclipse
1、显示行号 Window -- Prefences -- General -- Editors -- Text Editors -- show line numbers
2、代码提示字符 Window ->Perferences,并依次展开 Java -> Editor -> Content Assist,最下面一栏 auto-Activation
- 在tomcat上面安装solr4.8.0全过程
eksliang
Solrsolr4.0后的版本安装solr4.8.0安装
转载请出自出处:
http://eksliang.iteye.com/blog/2096478
首先solr是一个基于java的web的应用,所以安装solr之前必须先安装JDK和tomcat,我这里就先省略安装tomcat和jdk了
第一步:当然是下载去官网上下载最新的solr版本,下载地址
- Android APP通用型拒绝服务、漏洞分析报告
gg163
漏洞androidAPP分析
点评:记得曾经有段时间很多SRC平台被刷了大量APP本地拒绝服务漏洞,移动安全团队爱内测(ineice.com)发现了一个安卓客户端的通用型拒绝服务漏洞,来看看他们的详细分析吧。
0xr0ot和Xbalien交流所有可能导致应用拒绝服务的异常类型时,发现了一处通用的本地拒绝服务漏洞。该通用型本地拒绝服务可以造成大面积的app拒绝服务。
针对序列化对象而出现的拒绝服务主要
- HoverTree项目已经实现分层
hvt
编程.netWebC#ASP.ENT
HoverTree项目已经初步实现分层,源代码已经上传到 http://hovertree.codeplex.com请到SOURCE CODE查看。在本地用SQL Server 2008 数据库测试成功。数据库和表请参考:http://keleyi.com/a/bjae/ue6stb42.htmHoverTree是一个ASP.NET 开源项目,希望对你学习ASP.NET或者C#语言有帮助,如果你对
- Google Maps API v3: Remove Markers 移除标记
天梯梦
google maps api
Simply do the following:
I. Declare a global variable:
var markersArray = [];
II. Define a function:
function clearOverlays() {
for (var i = 0; i < markersArray.length; i++ )
- jQuery选择器总结
lq38366
jquery选择器
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
- 基础数据结构和算法六:Quick sort
sunwinner
AlgorithmQuicksort
Quick sort is probably used more widely than any other. It is popular because it is not difficult to implement, works well for a variety of different kinds of input data, and is substantially faster t
- 如何让Flash不遮挡HTML div元素的技巧_HTML/Xhtml_网页制作
刘星宇
htmlWeb
今天在写一个flash广告代码的时候,因为flash自带的链接,容易被当成弹出广告,所以做了一个div层放到flash上面,这样链接都是a触发的不会被拦截,但发现flash一直处于div层上面,原来flash需要加个参数才可以。
让flash置于DIV层之下的方法,让flash不挡住飘浮层或下拉菜单,让Flash不档住浮动对象或层的关键参数:wmode=opaque。
方法如下:
- Mybatis实用Mapper SQL汇总示例
wdmcygah
sqlmysqlmybatis实用
Mybatis作为一个非常好用的持久层框架,相关资料真的是少得可怜,所幸的是官方文档还算详细。本博文主要列举一些个人感觉比较常用的场景及相应的Mapper SQL写法,希望能够对大家有所帮助。
不少持久层框架对动态SQL的支持不足,在SQL需要动态拼接时非常苦恼,而Mybatis很好地解决了这个问题,算是框架的一大亮点。对于常见的场景,例如:批量插入/更新/删除,模糊查询,多条件查询,联表查询,