Posts

hp uft - UFT/QTP=Is it possible to get 'Transaction' time from result viewer? -

Image
i using 'transaction' feature find out exact loading time. getting transaction time in 'result viewer'. possible transaction time in excel or possible store transaction time in variable? please find attached screen shot more details thanks use following functions, call these @ appropriate places. if want use once remove function syntax. function starttimer itimerstart = timer() end function function stoptimer itimerstop = timer() datatable("timetaken", dtlocalsheet) = itimerstop - itimerstart end function

android - use finger print sensor as bio metric -

i new android bio-metric integration. is possible use android devices screen or fingerprint sensor biometric device users can login app without having use email or password. this , this , this references. is using external fingerprint scanner or biometric option or there alternative solution ? this code i've used reference. please have @ , let me know how can users fingerprint. mainactivity extends appcompatactivity { private fingerprintmanager fingerprintmanager; private keyguardmanager keyguardmanager; private keystore keystore; private keygenerator keygenerator; private static final string key_name = "example_key"; private cipher cipher; private fingerprintmanager.cryptoobject cryptoobject; @targetapi(build.version_codes.m) @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); keyguardmanager = (keyguardmanager) getsystemservice(keyguard_serv...

intellij idea - ruby-debug-ide failed to build gem native extention in Windows -

i have installed debase, when try gem install ruby-debug-ide, still failed build gem native extention: error: error installing ruby-debug-ide-0.6.1.beta2.gem: error: failed build gem native extension. c:/ruby22-x64/bin/ruby.exe mkrf_conf.rb installing base gem unable resolve dependency: user requested 'debase (> 0)' c:/ruby22-x64/lib/ruby/2.2.0/rubygems/resolver.rb:439:in `resolve_for_zero' c:/ruby22-x64/lib/ruby/2.2.0/rubygems/resolver.rb:350:in `resolve_for' c:/ruby22-x64/lib/ruby/2.2.0/rubygems/resolver.rb:196:in `resolve' c:/ruby22-x64/lib/ruby/2.2.0/rubygems/request_set.rb:358:in `resolve' c:/ruby22-x64/lib/ruby/2.2.0/rubygems/dependency_installer.rb:473:in `resolve_dependencies' c:/ruby22-x64/lib/ruby/2.2.0/rubygems/dependency_installer.rb:373:in `install' mkrf_conf.rb:35:in `rescue in <main>' mkrf_conf.rb:28:in `<main>' rake failed, exit code 1 gem files remain installed in c:/ruby22-x64/lib/ruby/gems/2...

java - Retrieve cookies from browser in stand alone app -

i want access cookies browser (for example firefox) in java stand alone app. can access cookie database or bad approach? there api might solving problem? cookies stored browser in it's own, proprietary form, i.e. each browser can store in different way. format change between releases of same browser. there no public apis available ask browser it's cookie-db. therefore doesn't make sense try build generic solution tries access browser's cookie db. if want create application , want use firefox cookies db, not problem , should work. firefox open source , can see how stores it's cookies in db. more recent versions use sqlite db, , file stored here https://superuser.com/questions/387372/where-does-firefox-keep-cookies

Passing numerical string with leading zero from asp.net razor to javascript - stange behavior -

i'm using javascript plug in highlight text on web page. the funktion simple: $("p").highlight("abc", true); this working perfect , highlights every occurence of 'abc' in every 'p' tag. when call fkd way in razor: @{ string marktext = "abc"; } <script> $("p").highlight(@marktext, true); </script> it works fine. but when set numerical string leading 0 e.g.: @{ string marktext = "0123"; } the javascript gets "83". by way found out 123 octal = 83 decimal. so question how can pass string "0123" straight forward javascript without transform? best regards gertr

python - How can I apply decorator to a superclass method in a subclass? -

say, have following situation, class a(): def something(): ... ... ... class b(a): def use_something(): ... ... # now, @ point want something() decorated # decorator. but, since defined in base class, # not getting how decorate here, in subclass. self.something() ... ... now, in class b, want use something() class a, want apply decorator it. cannot decorate in class a, since there different decorators want apply @ different places. say, class c(a) , want use something() here well, different decorator. so, coming original question; how can apply decorator superclass's method in subclass? any particular reason why can't override something() ? class a(): def something(self): ... class b(a): def use_something(self): ... self.something() ... def something(self): # "decorator" stuff super().so...

php - Adding content via wordpress admin -

i'm developing wordpress theme have set of custom pages , each page has it's own content! example, there custom page content done using html need able change content of single paragraph using wordpress admin panel. how do using wordpress framework? there special way of adding custom editable fields specific content locations in page? just add meta box , values post meta show in html you can generate metabox site without programing skills https://jeremyhixon.com/tool/wordpress-meta-box-generator/ and meta field value below code get_post_meta(get_the_id(), 'meta_key', true);